Several blue states expanded their medicaid programs to allow illegals. This was with the intention to pay for it with state dollars instead of federal dollars.
Some states even allow legal temporary visa visitors like students to sign up for their state level funded medicaid. NY is constitutionally required to do so.
ICE however is making a play to obtain all of that state level data.