It is the first Republican win from a Democrat in the liberal stronghold since 1998.