New York Attorney General Letitia James and 18 other Democratic attorneys general had brought the lawsuit to block DOGE’s access to the Treasury systems.