NEW YORK — President Donald Trump's financial records from two banks will not have to be turned over for now, according to a new court filing with the United States District Court for the Southern District of New York.

At the end of April, Trump sued Deutsche Bank and Capital One to prevent them from supplying information to congressional investigators related to subpoenas from the House Intelligence and Financial Services Committee. Federal judges upheld the subpoenas in later rulings, saying that they related to a "legitimate legislative purpose" of congressional oversight

According to the filing, "the parties have reached an agreement regarding compliance with and enforcement of the subpoenas during the pendency of Plaintiffs' appeal." Trump's lawyers have agreed to expedite the case.

Details on the agreement were not immediately available.

More:Second judge rules President Trump can't block Congress's subpoenas of his banking records

More:Donald Trump sues Deutsche Bank, Capital One in 'long shot' attempt to block congressional subpoenas

"I can confirm that an agreement has been reached with the House regarding a stay of the subpoenas pending appeal. It has now been filed with the court," said White House lawyer Jay Sekulow in a statement.

Trump's accounts with Deutsche Bank are of particular interest to congressional investigators. The bank served as a longtime lender to the Trump Organization, and a recent report said that anti-money laundering officials at the bank flagged transactions involving Trump and his son-in-law Jared Kushner,

Trump has said that he will fight "all the subpoenas," and his lawsuit to block the subpoenas accused congressional investigators of issuing them "to harass" the president.

Contributing: Doug Stanglin, Kristin Lam, Will Cummings, Kevin McCoy