A California judge late Monday issued a nationwide order blocking the Trump administration’s efforts to restrict asylum-seekers, saying a new rule imposed eligibility conditions that went beyond the powers granted by Congress.

The Trump administration’s rule and a related presidential proclamation restricting asylum claims on the southern border to those individuals who enter the U.S. at designated ports run afoul of the federal Immigration and Nationality Act, said Judge Jon Tigar of the U.S. District Court for the Northern District of California. In some instances, he said, the rule would have categorically prevented some immigrants from making asylum claims.