The state’s legal challenge to President Donald Trump’s administration’s plan to deny green cards to immigrants who receive welfare benefits has won a delay in the rule change from taking effect.

The move would deny green cards to immigrants who receive forms of public assistance, including Medicaid, food stamps and housing vouchers.

Attorney General Letitia James’s office has sued over the proposal, which was set to take effect in October. James last month filed a motion in federal court from delaying the implementation of the plan.

“Today marks an important first step on the path to fairness and humanity in our immigration system, thanks to Attorney General James,” said Steven Choi, the executive director of the New York Immigration Coalition.

“The Trump administration thought they could tell us who should and should not be a New Yorker. Today, we sent the President a clear message: New York belongs to everyone—whether you are rich or poor, whether you are white or a person of color. This is our New York and we will continue to fight to protect New York’s immigrant families from going hungry, and will make sure that they can access all the life-giving programs they need to ensure their families are strong.”

Gov. Andrew Cuomo in a statement called the development “an important win for our country.”

“The discriminatory rule was clearly crafted to target low-income immigrants of color and punish them for being poor by denying them entry to our country,” he said.

“We are a nation of immigrants, and it is repugnant to our values as Americans to turn away those who wish to come to our country in search of a better life for their families. In New York, we will continue to fight this administration’s assault on our immigrant communities at every turn, and we will remain a beacon of hope and acceptance for all.”