The lawsuit, filed in Albany, lists state Attorney General Letitia James and other officials as defendants.