The lawsuit was filed Monday in federal court in Massachusetts by Democratic attorneys general from 22 states.