A federal judge on Monday ordered the release of the search warrant the FBI used to reopen their probe into Hillary Clinton’s private email server days before the November election.

U.S. District Judge P. Kevin Castel ruled Monday morning that the public had a right to see the warrant, which he said was secretly filed with the court on Oct. 30.

“The search warrant, the application for the search warrant, the affidavit in support of the application for the search warrant, and the search warrant return will be unsealed and posted on the Court's electronic case filing system” subject to redactions, Castel said in his order.

The Justice Department may seek to block the release before a federal appeals court.

The court dispute concerns the warrant agents used to get access to emails stored on a computer belonging to Anthony Weiner, the estranged husband of top Clinton aide Huma Abedin.

FBI Director James Comey jolted the presidential race on Oct. 28 when he informed Congress that agents would be digging through the cache of emails between Abedin and Clinton for any new evidence related to Clinton's handling of sensitive State Department information.

Two days before the Nov. 8 election, Comey announced the inquiry had uncovered no new evidence of wrongdoing. Some in Clinton’s inner circle have blamed Comey for her loss, while President-elect Donald Trump’s advisers charge they’re making excuses.

The court documents are now set to be unsealed at noon Tuesday, with portions blacked out to conceal the names of the agents. The judge also ordered the redaction of any information about an open investigation of Weiner's online correspondence with a teenage girl.

Agents initially seized the computer in connection with that investigation.

Weiner, a Democrat, resigned his seat in Congress after sexually explicit texts and social media posts to various women. He tried for a political comeback two years later by running for mayor of New York, but his campaign was undone when evidence emerged that he hadn't given up his sexting habit.

Federal authorities began investigating him in late September after an online news outlet, the Daily Mail, published an interview with a North Carolina girl who said she had exchanged sexually explicit messages with him over several months.

Randol Schoenberg, a Los Angeles lawyer who specializes in recovering works of art stolen by the Nazis, petitioned the court to make the search warrant and supporting documents public.

In his order, Castel said public interest in the case overrode any privacy considerations.

"Ordinarily, a person whose conduct is the subject of a criminal investigation but is not charged with a crime should not have his or her reputation sullied by the mere circumstance of an investigation," he wrote. But in this instance, he said, the fact that the FBI investigated Clinton is hardly secret. "She has little remaining privacy interest in the release of the documents identifying her as the subject of this investigation."

Fox News’ Bill Mears and The Associated Press contributed to this report.