The ruling will not affect local elections set for November. But it will shorten the terms of some officials on the ballot ...