The State Assembly has passed the so-called Liberty Act, in response to President Trump's travel ban.
The legislation would make New York a sanctuary state for illegal immigrants.
Under the bill, an undocumented person could not be detained unless there was a warrant from a judge. And an undocumented person could not be questioned by state or local law enforcement just because that person appears to be an immigrant.