How abortion rights swayed results in the midterm election