A federal judge in Seattle on Tuesday temporarily blocked President Donald Trump’s halt of the country’s refugee resettlement program and freezing of funding for agencies that support refugees.

U.S. District Judge Jamal Whitehead swiftly granted a preliminary injunction, which blocks Trump’s executive order from taking effect nationwide and directs agencies to lift the federal funds suspension until the court case ends, or until it is overruled by a higher court.

The relief was warranted, Whitehead said, because the plaintiffs are likely to show the president’s executive order “has crossed the line from permissible discretionary action to effective nullification of congressional will.”

Presidents have “substantial discretion” to suspend refugee admissions, Whitehead said to a full courtroom and overflow room in downtown Seattle.

“But that authority is not limitless,” he said.