He said Acosta suffered "irreparable harm" by the decision to bar him.
The journalist thanked Judge Kelly for the ruling, before adding: "Let's get back to work".
CNN said in a statement on Friday that it "looked forward to a full resolution in the coming days". "Our honest thanks to all who have supported not just CNN, but a free, strong and independent American press".
The judge did not rule on the First Amendment question, though, because he found that Acosta's Fifth Amendment rights were likely violated as it appears he was given no due process.
Earlier this week, Fox News announced that it would support CNN's effort to restore Acosta's White House credential and filed an amicus brief with the U.S. District Court. Kelly said he agreed with the government's argument that there was no First Amendment right to come onto the White House grounds.
'It hits hard': Saskatoon comic book artist pays homage to Stan Lee
Fans argued back that the celebs were celebrating that special moment they got to meet the comic book legend himself. Reacting to the gaff in good humour, Spike, 61, posted the newspaper cover with the caption: "God Bless Stan Lee .
The White House had argued the President has broad authority to decide. We will also further develop rules and process to ensure fair and orderly press conferences in the future.
Trump cut off Acosta as he tried to press a point over refugees marching through Mexico toward the US border. "It's not a big deal and if he misbehaves, we'll throw him out or we'll stop the news conference", Trump said.
"Whether the news of the day concerns national security, the economy or the environment, reporters covering the White House must remain free to ask questions", the media groups said in a joint statement ahead of Wednesday's hearing.
CNN sued Trump and other White House officials on Tuesday over the revocation. He threatened that when reporters interrupt, "we'll just leave and then you won't be very happy".
"President Trump wants it to be a free-for-all", CNN's lawyer said.
Trump could answer written Russia probe questions this week
Trump has denied the allegation and maintained that he did not know about the settlement agreement until after it was signed. Also, Malloch's publisher, Nick Magliato , said Malloch's lawyer instructed the academic, who is in London, not to comment.
In fact, Trump himself frequently speaks harshly to reporters, for example last week telling another CNN correspondent several times that her question was "stupid".
In an interview with Fox News's Chris Wallace conducted shortly after a federal judge ruled the White House had to return Acosta's press badge, per Trump-appointed federal judge Timothy Kelly, "we have to create rules and regulations for conduct, etc., etc". Last week, the Trump administration yanked the White House reporter's credential following a silly spat with an intern over a microphone.
Media organisations have been alarmed by the White House's treatment of Acosta, saying that revoking his "hard pass" to enter the White House is a threat to other journalists who might be similarly banned.
"In response to the court, we will temporarily reinstate the reporter's hard pass", she said. Another got proof that Uncle Sam wants him behind bars.
However, BuzzFeed reporter Paul McLeod noted: "The judge did rule no one has an absolute First Amendment right to have access to the White House". Just reported that, despite the tremendous success we are having with the economy & all things else, 91% of the Network News about me is negative (Fake).
California city reeling from mass shooting besieged by fire
The 69-year-old took to Instagram on Thursday to update her followers that she "had 1 hour to pack up & evacuate our home". The fire erupted Thursday northwest of Los Angeles and has been swept southward toward the ocean by strong Santa Ana winds.
"I was confident ... that our rights would be protected to continue to cover our government and hold our leaders accountable", he said.