The state senator representing Livingston and Park County was among the 28 legislators who voted for a bill that would allow for the partisan election of judges and justices.