GREENBELT, Maryland—Attorneys for Maryland and the District of Columbia told a U.S. District Court judge on Thursday that President Donald Trump has violated the provisions in the Constitution prohibiting officials, once in office, to personally profit from business with foreign governments and other states.