A federal appeals court in Washington ruled Friday against President Donald Trump's efforts to block House Democrats' subpoena compelling his accounting firm to produce years of his financial records.

In a 2-1 decision, the U.S. Court of Appeals for the District of Columbia Circuit upheld a ruling from a lower court judge from May that the president cannot block House Oversight and Reform Committee Chairman Elijah Cummings' subpoena to obtain eight years of the president's financial documents from the financial firm Mazars USA. Judge Neomi Rao, who was appointed by Trump and confirmed by Congress in March, dissented.

Trump has filed lawsuits to shut down subpoenas from Democrats to obtain his financial information and tax returns, but he's lost all efforts to do so in lower courts, including the case before a federal judge in New York to stop Democrats' subpoena for financial records from Deutsche Bank and Capital One.

"Contrary to the president's arguments, the committee possesses authority under both the House Rules and the Constitution to issue the subpoena, and Mazars must comply," Judge David Tatel wrote in the majority's opinion. "We detect no inherent constitutional flaw in laws requiring presidents to publicly disclose certain financial information. And that is enough."

Before Mazars is forced to turn over the document, there's currently a petition for the appeals court to reconsider the case or Trump could also appeal the decision to block Mazars from producing his records to the Supreme Court.

Last month, Trump sued Mazars and Manhattan District Attorney Cyrus Vance after the prosecutor issued a subpoena for Trump's tax returns from Mazars. But a federal judge on Monday tossed out that lawsuit, rejecting his lawyer's argument that a sitting president can't be under criminal investigation while in office.

The standoff between Congress and the White House has intensified, especially in light of Democrats' growing impeachment inquiry. House Democrats stand by their legislative authorities that grant them subpoena power. But lawyers for the administration have argued that Congress doesn't have "a valid exercise of legislative power."