US District Judge Timothy Kelly issued a 14-day temporary restraining order early Thursday, allowing the three outlets to regain access to the White House while their lawsuit proceeds, Anadolu Agency reported.
Kelly said the outlets were likely to prevail, at least on the argument that their press credentials were revoked without due process.
He noted that the Trump administration did not dispute that the organizations were given neither notice nor an opportunity to respond before their hard passes were revoked.
The ruling also rejected the White House's argument that national security concerns justified the decision to exclude the outlets.
Kelly pointed to Trump's own explanation for the ban, noting that when the president announced the decision, he focused on what he described as the outlets' inaccurate and negative reporting rather than national security concerns.
Trump announced the ban on Friday, accusing the three organizations of repeatedly publishing what he called “FAKE NEWS.”
He said other media organizations could face similar treatment.
The US president later described the move as a ban on the “free press” and said he did not want the outlets inside the White House.
Trump also said the decision was based on what he characterized as years of negative coverage rather than any individual report.
The three news organizations challenged the decision in court, arguing that the administration had retaliated against them because of their reporting.
They also argued that the policy could pressure other journalists to alter their coverage out of concern that they could face similar restrictions.
In his ruling, Kelly said the First Amendment protects the press from government action based solely on an official's disagreement with the content of its reporting.
Trump had criticized Kelly ahead of Wednesday's hearing, calling him “totally disloyal” in a social media post and indicating that the administration would appeal an unfavorable ruling.
The White House had not immediately responded to a request for comment following the judge's order.