Updated at 9:54 a.m. ET

President Trump will not be able to shake off a lawsuit that accuses him of violating the Constitution by continuing to own his businesses while serving as president, a federal appeals court ruled Thursday.

The 9-6 decision by the full 4th Circuit Court of Appeals opens the way for the governments of Washington, D.C., and Maryland to get documents and financial records in the case.

In a 21-page decision, Judge Diana Gribbon Motz described some of the Department of Justice's arguments on behalf of Trump as "puzzling."

"[I]n the United States, every person — even the President — has a duty to obey the law," wrote Motz.

The case centers on the once-obscure emoluments clauses of the Constitution that prohibit the president from receiving gifts or favors from foreign governments. Trump's downtown Washington hotel, which occupies a building leased from the federal government, has been at the epicenter of the ethics disputes around the president.

Officials from the former Soviet republic of Georgia, Kuwait, Saudi Arabia and other countries have collectively spent hundreds of thousands of dollars at the hotel, just a few blocks from the White House. The lawsuit's plaintiffs say those profits are funneled directly to Trump's business coffers.

The District of Columbia and Maryland say planners of major events are booking gatherings at Trump's hotel over their own taxpayer-owned facilities, making them lose profits because, they allege, doing business at Trump's hotel is now seen as a way to curry favor with the president.

A smaller panel of the court's judges had initially ruled against D.C. and Maryland before the court allowed the plaintiffs to appeal the case before the full circuit.

The case involving Trump's hotel is one of multiple lawsuits that seek to pry open Trump's business records in light of his decision to neither divest his assets nor disclose his financial records.

After his 2016 election, Trump broke with decades of practice by past presidents and decided to maintain ownership of his businesses, which include hotels, resorts and office buildings around the world. He says his sons manage the day-to-day operations, however.

Amid the legal challenges, the Trump Organization had been trying to sell the hotel. However, the economic downturn brought about the coronavirus pandemic has shelved those plans for now.

The 4th Circuit's decision comes the same week that Trump's attempts to prevent his tax and financial records from being released to Congress and New York state investigators were the subject of arguments in the U.S. Supreme Court. A decision in those cases is expected this summer.

The Department of Justice and Trump's personal lawyers are likely to appeal Thursday's ruling to the U.S. Supreme Court, potentially setting up arguments in the case right at the peak of fall election campaign.

Copyright 2020 NPR. To see more, visit https://www.npr.org.