The race for the White House could be decided at the ballot box and the courtroom