Republican wins House race, seen as Obama rebuke