A Federal Judge struck down a key Trump policy rule Monday that denies green cards to immigrants who are on public assistance.

The policy was aimed at requiring a level of self-reliance on foreign workers and residents in the United States by making them ineligible for a green card if they are receiving federal benefits such as Medicaid and TANF. It was part of the Trump Administration’s larger plan at immigration reform.

The decision applies nationwide.

The decision was made in the United States District Court for the Northern District of Illinois by Judge Gary Feinerman. Feinerman was appointed by Barack Obama in 2009 and was approved by the Senate in 2010.

No word on whether the Justice Department will seek to appeal the ruling.