How religious groups voted in the midterm elections