A federal judge on Friday granted CNN's request for a court order that would temporarily reinstate network correspondent Jim Acosta's White House press pass, which had been suspended indefinitely in the wake of a fiery exchange between the reporter and President Donald Trump a week earlier.
The ruling from Judge Timothy Kelly, who was appointed by Trump, gave CNN a victory in the ongoing case.
"I want to thank all of my colleagues in the press who supported us this week, and I want to thank the judge for the decision he made today," Acosta said outside U.S. District Court in Washington, D.C.
"Let's go back to work!" he added.
In a statement later on Friday, White House press secretary Sarah Huckabee Sanders said the Trump administration will return Acosta's pass.
"Today, the court made clear that there is no absolute First Amendment right to access the White House. In response to the court, we will temporarily reinstate the reporter's hard pass. We will also further develop rules and processes to ensure fair and orderly press conferences in the future," Sanders said. "There must be decorum at the White House."
Trump said the White House was already drafting rules of conduct during an interview with Fox News' Chris Wallace later Friday. Asked about the judge's ruling on Acosta, Trump said, "It's not a big deal and if he misbehaves, we'll throw him out or we'll stop the news conference."
The president also claimed he was a firm believer in press freedom, but said he will shut down future press interactions if a reporter is "acting out of sorts."
"I will say this, look, nobody believes in the First Amendment more than I do and if I think somebody is acting out of sorts I will leave. I will say thank you very much everybody, I appreciate you coming and I'll leave," Trump told Wallace.