This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

WASHINGTON — A federal judge ordered the White House to reinstate chief White House correspondent Jim Acosta’s press pass.

The ruling was an initial victory for CNN in its lawsuit against President Donald Trump and several top aides.

The lawsuit alleges that CNN and Acosta’s First and Fifth Amendment rights were violated by the suspension of Acosta’s press pass. The judge did not rule on the underlying case on Friday. But he granted CNN’s request for a temporary restraining order.

This result means that Acosta will have his access to the White House restored for at least a short period of time. The judge said while explaining his decision that he believes that CNN and Acosta are likely to prevail in the case overall.

Kelly made his ruling on the basis of CNN and Acosta’s Fifth Amendment claims, saying the White House did not provide Acosta with the due process required to legally revoke his press pass.

He left open the possibility, however, that the White House could seek to revoke it again if it provided that due process, emphasizing the “very limited” nature of his ruling and saying he was not making a judgment on the First Amendment claims that CNN and Acosta have made.

In a statement, CNN said, “We are gratified with this result and we look forward to a full resolution in the coming days. Our sincere thanks to all who have supported not just CNN, but a free, strong and independent American press.”

CNN has also asked for “permanent relief,” meaning a declaration from the judge that Trump’s revocation of Acosta’s press pass was unconstitutional. This legal conclusion could protect other reporters from retaliation by the administration.

“The revocation of Acosta’s credentials is only the beginning,” CNN’s lawsuit alleged, pointing out that Trump has threatened to strip others’ press passes too.

But the judge will rule on all of that later. Further hearings are likely to take place in the next few weeks, according to CNN’s lawyers.

The White House took the step of suspending Acosta’s access after he had an exchange with Trump at last week’s post-midterms press conference. CNN said they privately sought a resolution for several days before filing suit on Tuesday.

The defendants include President Trump, press secretary Sarah Sanders, and chief of staff John Kelly.

The White House continued to argue that Acosta deserves to be blacklisted because he was too aggressive at the press conference.

Speaking with Robert Costa at a Washington Post Live event on Thursday, White House communications official Mercedes Schlapp said press conferences have a “certain decorum,” and suggested that Acosta violated that. “In that particular incident, we weren’t going to tolerate the bad behavior of this one reporter,” she said. Schlapp repeated the “bad behavior” claim several times.

When Costa asked if the White House is considering yanking other press passes. Schlapp said “I’m not going to get into any internal deliberations that are happening.”

In court on Wednesday, Justice Department lawyer James Burnham argued that the Trump White House has the legal right to kick out any reporter at any time for any reason.