This combative approach, some analysts say, mirrors the heated rhetoric about judicial bias and overreach that has become a staple of national politics.

“This is Trumpism at the lower level,” said Bernard Grofman, an elections expert at the University of California, Irvine who redrew Virginia’s congressional map in 2015 following a federal court finding that districts had been racially gerrymandered. “This is the view that if independent branches of government say things that don’t match what you say or do, you fire them; you impeach them; you malign them; you destroy them as best you can.”

The latest example is in Pennsylvania, where the State Supreme Court split along party lines last month when it struck down the congressional district map as a Republican-drawn gerrymander. The court gave the Republican-dominated legislature three weeks to draw a new House map, adding that it would take over the map-drawing if the lawmakers could not reach agreement on new boundaries with the state’s Democratic governor.

Even after the United States Supreme Court rejected the legislature’s plea to intervene on Feb. 5, Republicans have refused to completely accept the state court’s decision. The president of the State Senate, Joe Scarnati, first raised eyebrows by stating that he would not comply with the court’s order to turn over any data used in drawing the House maps. Later, he said he might file ethics complaints against two Democratic justices who expressed opinions on gerrymandering before the January decision, seeking to disqualify them from the ruling.

On Friday, hours before the court-appointed deadline, Republican legislators sent a proposed new House map to Gov. Tom Wolf, a Democrat.

But analysts say the proposed map, which was prepared without input from the legislature’s Democrats, effectively preserves the existing Republican dominance in the House, albeit with boundaries that do not “wander seemingly arbitrarily across Pennsylvania,” as the court said of the map it struck down.

On Tuesday, Mr. Wolf rejected the map, and the job of redistricting will fall to Nathaniel Persily, a professor of law at Stanford University who is the court-appointed special master. But in an interview last week, Mr. Scarnati called a court takeover of the mapping process “grossly unconstitutional,” and pledged to challenge it in federal court.