Wallkill Town Supervisor George Serrano has been reelected.
A state Supreme Court judge issued the ruling Friday afternoon.
The Republican defeated Democrat Neil Meyer by two votes.
The final tally came to Serrano with 1,911 votes, compared to 1,909 for Meyer.