This is just another attempt by the Trump administration to punish a blue state for not towing the Trump line. It will be challenged and overturned by the state of New York in the courts. The two issues are completely unrelated. There is no way that someone who is undocumented could get GE. On applying you have to present extensive documentation and undergo an interview. What undocumented individual would risk an interview and deportation to get GE if they were already in the country?