RICHMOND, Va. (AP) — A federal appeals court has heard arguments that President Donald Trump is violating the Constitution by accepting profits from foreign and domestic officials through his hotel in Washington.

The attorneys general of Maryland and the District of Columbia say government spending at the Trump International Hotel violates the Constitution’s emoluments clause, which bans federal officials from accepting benefits from foreign or state governments without congressional approval.

READ MORE: Maryland Weather: Severe Storm Threat Prompts Alert Day Saturday

But Trump’s lawyers told a three-judge panel of the 4th U.S. Circuit Court of Appeals on Tuesday that the plaintiffs lack authority to sue the president.

They also said Trump hasn’t violated the emoluments clause because it only bars payments for services he provides in his official capacity.

READ MORE: Baltimore Police Stepping Up Deployment On Fourth Of July Weekend, Commissioner Says

They are challenging a lower court’s decision to let the lawsuit proceed.

Follow @CBSBaltimore on Twitter and like WJZ-TV | CBS Baltimore on Facebook

MORE NEWS: State Police Expand Traffic Enforcement On I-83 In Baltimore City

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)