From redistricting in California to mayor of New York, voters in several US states cast ballots for elected officers and supreme court judges