The banned news organizations had filed a federal lawsuit accusing the president of violating the First Amendment.