This was shocking to see.

A federal judge appointed by President Donald Trump handed the administration a surprising legal defeat Thursday by dismissing a Department of Justice lawsuit involving Maine’s voter registration records.

The ruling immediately sparked debate among conservatives who believe the federal government should have greater access to election data in order to strengthen voter integrity protections nationwide.

The lawsuit targeted Maine Secretary of State Shenna Bellows after state officials refused to provide detailed voter information requested by the U.S. Department of Justice.

Federal officials had reportedly requested access to voter registration records that included names, driver’s license numbers, partial Social Security numbers, and dates of birth. Maine officials argued the request raised serious privacy concerns and claimed the DOJ failed to fully explain how the information would be used.

Bellows rejected the request last summer before later asking the court to dismiss the lawsuit entirely.

The political battle quickly intensified after Bellows publicly mocked the Trump administration during a press conference, telling the DOJ to “go jump in the Gulf of Maine” while accusing federal officials of overstepping their authority.

On Thursday, Chief U.S. District Judge Lance Walker — who was appointed by Trump in 2018 — sided with Maine and formally dismissed the case.

In the ruling, Walker argued that states have historically maintained primary authority over election administration and voter registration systems.

“The United States’ requests would require me to turn a blind eye to traditional practices of federalism,” Walker wrote in the decision.

The ruling was celebrated by Bellows, who described the outcome as a victory for state control over elections and voter privacy rights.

“Today’s ruling affirms that the states, not the federal government, are in charge of our elections,” Bellows said in a statement following the decision.

She also claimed the Trump administration may continue attempting to expand federal involvement in election oversight but insisted Maine would continue resisting outside interference.

The case is part of a much larger national dispute over election transparency, voter roll maintenance, and the balance of power between states and Washington.

According to reports, the DOJ has filed similar lawsuits against roughly 30 states that declined to turn over unredacted voter registration data. Courts have already dismissed several of those cases, including lawsuits involving Massachusetts, Arizona, California, Rhode Island, Oregon, Michigan and now Maine.

As of Thursday evening, the Department of Justice had not publicly commented on the judge’s decision.

For many conservatives, the ruling raises larger questions about whether federal agencies should play a stronger role in protecting election integrity — or whether states should remain fully in control of their own voter systems.

With election security expected to remain a major issue heading into future elections, this legal battle may be far from over.