New York's elections for many county and town offices must now be held in even-numbered years with a final court ruling in a two-year legal battle.