Most elections are decided at the ballot box. This one may be decided in court - by the very justices who will sit alongside whoever is ultimately declared the winner.