FILE PHOTO: U.S. President Donald Trump reacts as he speaks at the Wounded Warrior Project Soldier Ride event after the release of Special Counsel Robert Mueller's report, in the East Room of the White House in Washington, U.S., April 18, 2019. REUTERS/Carlos Barria/File Photo

WASHINGTON (Reuters) - Deutsche Bank AG and Capital One Financial Corp will not have to immediately hand over the financial records of U.S. President Donald Trump, three of his children and the Trump Organization, according to a court filing on Saturday.

The filing in U.S. District Court for the Southern District of New York followed an appeal submitted on Friday by Trump and his affiliates against an existing order from a federal judge allowing the banks to hand over financial records to Democratic lawmakers.

Amid an ongoing legal battle between the Republican president and Democrats in Congress, the agreement to hold off for now on enforcing the subpoenas for Trump’s financial records was a rare accord between Trump’s attorneys, the banks and the House Intelligence and the Financial Services Committees.

“The parties have reached an agreement regarding compliance with and enforcement of the subpoenas” while the appeal to the 2nd U.S. Circuit Court of Appeals is pending, the filing said.

Parts of the subpoenas have been included in court filings. The subpoena on Deutsche Bank seeks records of accounts, transactions and investments linked to Trump, his three oldest children, their immediate family members and several Trump Organization entities, as well as records of ties they might have to foreign entities.

Deutsche Bank has long been a principal lender for Trump’s real estate business and a 2017 disclosure form showed that Trump had at least $130 million of liabilities to the bank.

The subpoena on Capital One seeks records related to multiple entities tied to the Trump Organization’s hotel business. It followed an informal request to the bank by Democratic lawmakers in March seeking records related to potential conflicts of interest tied to Trump’s Washington hotel and other businesses.

A lawyer for the Trumps argued earlier this week that the subpoenas exceeded the authority of Congress and were “the epitome of an inquiry into private or personal matters.”

U.S. District Judge Edgardo Ramos, however, found that they were allowed under the broad authority of Congress to conduct investigations to further legislation.