A Long Island judge has annulled an austerity measure that aims to force dozens of older New York judges off the bench.