In states such as North Carolina and Pennsylvania, where the high state courts are dominated by Democrats, Republican-led legislatures have grown frustrated by some election opinions judges have issued and affirmed.