A judge in New York ruled that voting by mail over fears of the coronavirus is unconstitutional.

The Democrat-controlled legislature "appears poised to continue the expanded absentee voting provisions of New York State Election Law … in an Orwellian perpetual state of health emergency and cloaked in the veneer of ‘voter enfranchisement,'" Saratoga County Supreme Court Justice Dianne Freestone, a Republican, wrote in her ruling Friday.

The 28-page ruling ordered local election boards to stop counting absentee ballots they’ve already received and to "preserve" them until after Election Day on Nov. 8 or after the resolution of a lawsuit filed by Republicans in the state. The ruling does not invalidate ballots that have already been mailed.

In 2020, delays, litigation and mistakes by election boards that faced a flood of absentee ballots led to long waits for election results. The Democratic-controlled legislature eventually passed a law allowing for early counting of absentee voting.

NY VOTERS PUT CRIME AHEAD OF INFLATION IN MIDTERM ELECTION, BOOSTING ZELDIN TO WITHIN 4 POINTS OF HOCHUL

Georgia absentee ballots

A worker at the Fulton County Board of Registration and Elections works to process absentee ballots at State Farm Arena on Nov. 2, 2020, in Atlanta. (AP Photo/John Bazemore)

Republicans in the state celebrated the ruling as a win for election integrity.

"Let's hope now that they preserve our ability to make sure that our elections are done with integrity and that voters are verified and that this system of absentee balloting – just like the voters said last November that they didn’t want no-excuse absentee voting, essentially mail-in voting – that it is held to a high standard, that way to ensure that each citizen gets one vote," New York state Rep. Robert Smullen and plaintiff in the lawsuit said, according to WRGB.

NEW YORK GOVERNOR RACE BETWEEN GOV. HOCHUL AND REP. ZELDIN TIGHTENS TO ‘TOSS-UP’

Democratic leaders in the state appealed the ruling and are pushing for a stay.

Vote here sign in Reading, PA

A "Vote Here" sign outside a polling place in Reading, Pennsylvania, on May 18, 2021. (Ben Hasty/MediaNews Group/Reading Eagle via Getty Images)

A nonpartisan election-reform group called Common Cause New York said the ruling "might not even go into effect for this election," the New York Post reported.

NEW YORK TIMES ARTICLE WARNS DEMOCRATS' WORST MIDTERM FEARS BEING REALIZED: 'RED OCTOBER HAS ARRIVED'

Polling Center

Voting booths (iStock)

"And, even if it does, it would only affect the time and way absentee ballots are counted – you can still vote absentee as planned, and your ballot will still be counted," the group added.

CLICK TO GET THE FOX NEWS APP

The Associated Press contributed to this article.