A federal judge has ordered the Trump administration to temporarily restore ⁠White House ⁠access ​to journalists from CNN, MS Now and Politico, ⁠saying his ban on the three media outlets was ⁠likely unconstitutional.

US district judge Tim Kelly issued his order in a lawsuit that the news organizations filed ‌contesting the ban that the president announced ​on 18 September.

Kelly ordered the Trump administration to immediately return the outlets’ press passes and issued a temporary restraining order that will be in effect for 14 days. Such orders are typically designed to preserve the status quo pending a closer review of the case by the court.

Earlier on Wednesday Kelly cited past case law that clearly laid out the need for a distinct process that involved advance notice of an infraction and the opportunity to plead one’s case.