Attorney General Letitia James filed a suit against the Trump administration, which canceled the funding because it said New York had illegally issued trucking licenses.