rt may order the State to pay the costs of the defense of the prevailing party or parties and the costs of the suit upon a finding by the court that the action was frivolous.In any action by the Attorney General brought against the defendant for violating the terms of an injunction issued under this section, the court may make such orders or judgments as may be necessary to restore to any persons