New York Attorney General Letitia James announced Tuesday her office had filed a motion to block President Donald Trump’s administration from a rule change that would deny green cards and visas to immigrants who are seeking social services and other welfare programs.

The Trump administration signaled last month it would move ahead with the “public charge” rule change, which federal officials said was meant to boost self-sufficiency. Immigration advocates contend the move would deny vital services like health care.

“We will not allow Trump Administration to enact rules that violate the laws and the values of this country,” James said.

“If enforced, the public charge rule will not only sow fear and chaos into the lives of immigrants working to lift themselves and their families out of poverty, but will have an adverse impact on the heath and well being of New Yorkers, and individuals across this country. This rule is dangerous, disruptive, and should not be permitted to take effect.”

The rule change is due to take effect on Oct. 15.