In dissent, three justices said the court should have used the case to provide guidance in future elections.