Texas AG can’t unilaterally prosecute election situations, courtroom rules