A federal judge in Manhattan became the first in the country Friday to bar the Trump administration from enforcing its so-called “public charge” rule, which would make it easier for the federal government to deny immigrants legal status who seek public assistance based on their income.

The decision came just days before the rule was scheduled to take effect Tuesday, after being finalized by the Trump administration in August.