Updated

A judge in Florida has dismissed the case against former President Trump's handling of classified documents.

Trump had faced charges stemming from special counsel Jack Smith's investigation into his possession of classified materials at Trump's Mar-a-Lago residence. He pleaded not guilty to all 37 felony counts from Smith’s probe, including willful retention of national defense information, conspiracy to obstruct justice and false statements.

"Former President Trump’s Motion to Dismiss Indictment Based on the Unlawful Appointment and Funding of Special Counsel Jack Smith is GRANTED in accordance with this Order," U.S. District Judge Aileen Cannon wrote in a Monday ruling. "The Superseding Indictment is DISMISSED because Special Counsel Smith’s appointment violates the Appointments Clause of the United States Constitution."

Trump, following the ruling, told Fox News' Bret Baier – the anchor and executive editor of ‘Special Report with Bret Baier’ that he was "thrilled that a judge had the courage and wisdom to do this. This has big, big implications, not just for this case but for other cases. 

SOME HOUSE DEMOCRATS REPORTEDLY GIVE UP ON BIDEN, RESIGNED TO A SECOND TRUMP PRESIDENCY

Trump classified docs in Mar-a-Lago room

This image, contained in an indictment against former Trump, shows boxes of records stored in a bathroom and shower in the Lake Room at Trump's Mar-a-Lago estate in Palm Beach, Fla. (Justice Department via AP)

"The special counsel worked with everyone to try to take me down," Trump added from Milwaukee, the site of this week's Republican National Convention. "This is a big, big deal. It only makes this convention more positive. This will be an amazing week."

The Appointments Clause says, "Ambassadors, other public Ministers and Consuls, Judges of the Supreme Court, and all other Officers of the United States be appointed by the President subject to the advice and consent of the Senate, although Congress may vest the appointment of inferior officers in the President alone, in the Courts of Law, or in the Heads of Departments." Smith, however, was never confirmed by the Senate.

"Upon careful study of the foundational challenges raised in the Motion, the Court is convinced that Special Counsel’s Smith’s prosecution of this action breaches two structural cornerstones of our constitutional scheme – the role of Congress in the appointment of constitutional officers, and the role of Congress in authorizing expenditures by law," Cannon wrote. 

TRUMP VIP RALLY ATTENDEE SHARES WHAT HE EXPERIENCED DURING THE ASSASSINATION ATTEMPT

"The Framers gave Congress a pivotal role in the appointment of principal and inferior officers.  That role cannot be usurped by the Executive Branch or diffused elsewhere – whether in this case or in another case, whether in times of heightened national need or not," she continued.

trump and jack smith

Former President Trump, left, and special counsel Jack Smith. (Getty Images/File) (Getty Images)

"In the case of inferior officers, that means that Congress is empowered to decide if it wishes to vest appointment power in a Head of Department, and indeed, Congress has proven itself quite capable of doing so in many other statutory contexts.  But it plainly did not do so here, despite the Special Counsel’s strained statutory readings," Cannon added. 

Mar-a-Lago in Florida

An aerial view of President Donald Trump's Mar-a-Lago estate in Palm Beach, Fla.  (AP Photo/Steve Helber, File)

"In the end, it seems the Executive’s growing comfort in appointing ‘regulatory’ special counsels in the more recent era has followed an ad hoc pattern with little judicial scrutiny," she also said.

Earlier this month, Trump requested a partial pause in the classified documents case brought against him after a U.S. Supreme Court decision found that presidents have substantial immunity for official acts that occurred while they were in office.

Lawyers for Trump had asked a Florida court to pause all proceedings in the case until the judge can apply the Supreme Court’s immunity ruling to the facts of the case.

Donald Trump is seen with blood on his face surrounded by secret service

Trump is seen with blood on his face and surrounded by Secret Service agents as he is taken off the stage at a campaign rally in Butler, Pennsylvania, on Saturday, July 13.   (Rebecca Droke/AFP via Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

Smith can appeal Monday's ruling.

Fox News' David Spunt, Jake Gibson, Brianna Herlihy, Anders Hagstrom and Brooke Singman contributed to this report.