The US Justice Department´s lawyer, James Burnham, argued that Acosta had "disrupted" last week´s news conference and that "there is no First Amendment right to access the White House". We're doing that, were going to write them up right now.
Acosta, CNN's chief White House correspondent, was back in the afternoon.
He described his ruling as "very limited" and left open an avenue to remove Acosta's pass with due process.
CNN said in a statement on Friday that it "looked forward to a full resolution in the coming days". Last Friday's foolishness, with Acosta white-knuckling the mic and Trump shouting and that poor intern visibly wishing she'd taken some other gig, was just the latest, greatest example.
White House Press Secretary Sarah Huckabee Sanders said in a statement that Acosta's credentials would be temporarily restored.
This conduct is absolutely unacceptable.
Acosta attempted to ask another question about special counsel Robert Mueller's Russian Federation investigation and initially declined to give up a hand-held microphone to a White House intern. The president makes a mockery of this idea every day, lashing out at his critics with childish insults and cheering on violence against the press.
He thanked the judge for the ruling then added, "Let's go back to work". The judge didn't squarely reach the First Amendment issue of whether a reporter can be excluded on the president's order, although it's safe to say that he's on CNN's side of that given the precedent he used in making his decision.
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.
They thanked "all who have supported not just CNN, but a free, strong and independent American press".
The White House did not immediately respond to a request for comment. The reporter refused to surrender a microphone to a White House aide who tried to take it away. "We want total freedom of the press".
"Jim Acosta has no constitutional right to be admitted to the White House, period", Limbaugh added.
CNN reporter Jim Acosta speaks with reporters outside of the US District courthouse.
Garrett told conservative radio host Larry O'Connor he had asked hard questions of all four presidents he had covered-Trump, Barack Obama, George W. Bush and Bill Clinton-and while he said he didn't want to criticize how his colleagues acted, he agreed with O'Connor's point that there was a code of conduct for reporters at the White House.
Although some seem to believe that the entire Acosta scandal was a ruse by Trump to save Assange's neck.
"I was confident ... that our rights would be protected to continue to cover our government and hold our leaders accountable", he said.