WASHINGTON (AP/WAVY) — The Supreme Court on Wednesday allowed Virginia to resume its purge of voter registrations that the state says is aimed at stopping people who are not U.S. citizens from voting.

The justices granted an emergency appeal from Virginia’s Republican administration. The justices acted on the state’s emergency appeal after a federal judge found that the state illegally purged more than 1,600 voter registrations in the past two months. A federal appeals court had previously allowed the judge’s order to remain in effect.

Such voting is rare in American elections, but the specter of immigrants voting illegally has been a main part of the political messaging this year from former President Donald Trump and other Republicans.

Attorney General Jason Miyares posted on social media following the announcement.

“I am pleased to announce that the US Supreme Court granted Virginia’s emergency stay to keep noncitizens off our voter rolls,” Miyares said.

Governor Glenn Youngkin also made a statement on the ruling, which can be read in full below:

We are pleased by the Supreme Court’s order today. This is a victory for commonsense and election fairness. I am grateful for the work of Attorney General Jason Miyares on this critical fight to protect the fundamental rights of U.S. citizens. Clean voter rolls are one important part of a comprehensive approach we are taking to ensure the fairness of our elections. Virginians also know that we have paper ballots, counting machines not connected to the internet, a strong chain of custody process, signature verification, monitored and secured drop boxes, and a ‘triple check’ vote counting process to tabulate results. Virginians can cast their ballots on Election Day knowing that Virginia’s elections are fair, secure, and free from politically-motivated interference.

Governor Glenn Youngkin

Congressman Bobby Scott (VA-03), who is the co-chair of the Congressional Voting Rights Caucus, slammed the ruling.

“I am deeply disappointed and disturbed by the U.S. Supreme Court’s decision to greenlight blatant voter suppression efforts in the Commonwealth of Virginia. This decision will allow Governor Youngkin to strip Virginians of their right to vote in clear violation of federal law. This decision also perpetuates the falsehood that noncitizens are voting in meaningful numbers and former President Trump’s plan to undermine confidence in our elections.

“The National Voter Registration Act is clear. It requires all states to complete any systematic removal of voters from its voter rolls 90 days before a federal election. This statute gives states ample time prior to this deadline to review its voter rolls. Most importantly, it provides voters sufficient time to rectify any improper removal prior to Election Day. U.S. District Court Judge Patricia Tolliver Giles determined that Governor Youngkin’s actions violated this statute, and the U.S. Court of Appeals for the Fourth Circuit upheld her order citing the Commonwealth’s defense of the action as ‘weak’ and that it ‘violates basic principles of statutory construction.’ Furthermore, the Fourth Circuit recognized that the Commonwealth maintains the ability to remove ineligible voters on an individualized basis to limit the risk of improper removals.

“Unfortunately, this latest order by the Supreme Court is just one in a series of rulings that have rolled back fundamental rights, freedoms and foundational principles of our democracy. This Court gutted key provisions of the Voting Rights Act, stripped women of their right to make decisions about their own body, diminished the ability of federal agencies to protect communities from toxic pollutants, and created the foundation for a President of the United States to be immune from the law.”

Congressman Bobby Scott