Democratic AG could now be forced to prove that her prosecution of the Republican defendants wasn't motivated by politics. Mayes plans to appeal ruling.