Abandoned by party leaders over inflammatory posts, Democrat Shelly Headen narrowly flipped a GOP-held North Carolina House seat.