Increased efforts by teachers unions and conservative groups to get favored candidates elected had mixed results this year.