On Tuesday, the judge ruled that the state must hold its primary on June 23 as planned.
The judge said there was enough time before the primary occurs to figure out how to carry it out safely.
Last week, the board canceled the primary by removing all candidates' names from the ballot except for Joe Biden, even though New York was still planning to hold its congressional and state-level primaries.
They cited the danger to voters from the coronavirus as a reason to cancel the election since former Vice President Joe Biden has been endorsed by the major candidates he had faced.
The move was quickly challenged by former presidential contender Andrew Yang, and a number of his delegates, in a federal lawsuit, which argued that the decision would disenfranchise voters.
New York's primary was initially scheduled for April 28, but was postponed to June, with state and election officials encouraging voters to cast their ballots by mail, due to the coronavirus.
MORE CORONAVIRUS COVID-19 COVERAGE
COVID-19 Help, Information and Resources
Grieving the lost: Tri-State residents who have died
New York City
Share your coronavirus story with Eyewitness News
Stimulus check scams and other coronavirus hoaxes
Coronavirus prevention: how clean are your hands?
Centers for Disease Control and Prevention on coronavirus
Total count of NYC COVID-19 cases based on patient address