The former president is seeking monetary damages from the government, which he may soon be heading, over what his legal filing called a "malicious political prosecution."
U.S. District Judge Aileen Cannon handed down her decision in a big win for the former president. Special counsel Jack Smith's office indicated it would appeal the ruling.
A court ruling that dismissed Trump's Mar-a-Lago documents indictment echoed language in a concurring opinion Thomas wrote in the former president's election interference case.
Trump’s lawyers want the judge to consider Justice Clarence Thomas’ opinion that the appointment of Smith as special counsel could violate the Constitution.
The former president was friends with deceased pedophile Jeffrey Epstein and allegedly flew on his plane, but there have been no new revelations about their relationship.
The court's ruling has ramifications for Fulton County District Attorney Fani Willis' prosecution of Trump and his allies over election interference allegations.