A federal court in New York is expected to release on Tuesday redacted versions of the search warrant that led the FBI to reopen its investigation into Hillary Clinton's private email server days before the presidential election.

U.S. District Judge P. Kevin Castel ordered the search warrant application to be released with certain portions blacked out, arguing the public has a right to see the documents, the Associated Press reported.

With the search warrant, the FBI found emails on the laptop of former Democratic Rep. Anthony Weiner (D., N.Y.), the estranged husband of top Clinton aide Huma Abedin. Weiner and Abedin reportedly shared the laptop. Authorities were investigating Weiner for allegedly sending messages of a sexual nature to an underage girl and found emails on the computer relevant to the Clinton email probe.

FBI Director James Comey then sent a letter to Congress announcing the bureau would relaunch its probe into Clinton's email practices to determine if she mishandled classified material while at the State Department. The FBI closed the investigation before the election, and Clinton was not charged with any wrongdoing.

Clinton and her top allies have blamed the FBI's investigation days before the election for her loss to President-elect Donald Trump.