A federal judge has ordered the Trump administration to immediately return the White House press credentials to CNN reporter Jim Acosta.