It should.
So by definition, then, to even issue the license it means the state of NY knows:
1) the illegal status of the applicant
2) their name and address
So why aren’t they being rounded up and put on a bus?
I don’t understand how CA, NY, can just go rogue unless they are declaring independence from the US.