RICHMOND, Va. (AP) — Gov. Terry McAuliffe’s action restoring the voting rights of more than 200,000 felons was unconstitutional, Virginia’s highest court ruled Friday, siding with Republican lawmakers who said the governor overstepped his authority.

In a 4-3 decision, the Supreme Court of Virginia ordered the state to cancel the registration of the more than 11,000 felons who had signed up to vote so far under the governor’s April executive order. Top Republicans called it “a major victory for the Constitution, the rule of law and the Commonwealth of Virginia.”

“Our nation was founded on the principles of limited government and separation of powers. Those principles have once again withstood assault from the executive branch. This opinion is a sweeping rebuke of the governor’s unprecedented assertion of executive authority,” House Speaker William Howell and Senate Majority Leader Thomas Norment said in a statement.

A spokesman for McAuliffe didn’t immediately respond to a request for comment Friday.

The executive order restored voting rights of felons who completed their sentences and also allowed them to run for public office, serve on a jury and become a notary public. Republican lawmakers swiftly sued, arguing that governors cannot restore rights en masse but must consider each former offender’s case individually.

McAuliffe’s administration and backers countered that there’s nothing in the constitution that says – or even implies – that governors must restore a person’s rights on a case-by-case basis.

But the Supreme Court rejected that argument Friday, calling it “overstated at best.”

Chief Justice Donald Lemons, who wrote the opinion for the court, said the claim that governors can grant blanket pardons is “irreconcilable” with the requirement in the Constitution that governors must report to lawmakers the “‘particulars of every case’ and state his ‘reasons’ for each pardon.”

“This requirement implies a specificity and particularity wholly lacking in a blanket, group pardon of a host of unnamed and, to some extent, still unknown number of convicted felons,” Lemons wrote.