The lawsuit against New York Attorney General Letitia James and Gov. Kathy Hochul targets a state law that allows people who might not be in the U.S. legally to get driver’s licenses.