A federal judge in San Francisco on Wednesday issued a nationwide injunction blocking a Trump Administration rule that barred asylum for migrants who failed to apply for protection in a country they transited through to reach the U.S.—a policy directed at stemming the tide of Central American migrants coming to the country through Mexico.

In a 45-page order issued Wednesday afternoon, U.S. District Judge Jon Tigar of the Northern District of California found that the rule is “is inconsistent with the existing asylum laws” passed by Congress.