The New York state Court of Appeals unanimously ruled Thursday that a new state law that will move most local elections to even-numbered years to align with state and federal races is constitutional.