The attorneys general of Maryland and the District of Columbia filed a federal lawsuit Monday against President Donald Trump, alleging he violated the Constitution by improperly retaining ties to his sprawling global business empire and by accepting foreign payments while in office.