A judge has ruled that Deutsche Bank and Capital One can hand over Donald Trump’s financial documents in response to congressional subpoenas.

US District Court Judge Edgardo Ramos rejected a request by Mr Trump and his family to block subpoenas issued by Democrats on the House Financial Services and Intelligence committees on Wednesday, striking a blow to the president’s longstanding attempt to keep his financial records secret from the American public.

The subpoenas are seeking years of documents, including tax returns and evidence of suspicious activity.

In the case of Deutsche Bank, which has lent Mr Trump’s real estate company millions of dollars, the subpoenas are also seeking any internal communications regarding Trump and his ties to foreign individuals.

Capital One is home to one of Mr Trump’s personal accounts. In August 2017, Mr Trump wrote a $35,000 cheque to Michael Cohen from this account. That money was linked to the president’s attempt to pay off Stormy Daniels, the porn star who alleged that she had an affair with Mr Trump before he took office.

Inside Trump Tower: New York's least desirable luxury property Show all 13 1 /13 Inside Trump Tower: New York's least desirable luxury property Inside Trump Tower: New York's least desirable luxury property Looking out of the lobby of Trump Tower Philo Ratio Inside Trump Tower: New York's least desirable luxury property A view of the atrium of Trump Tower Sebastian Bergmann Inside Trump Tower: New York's least desirable luxury property Trump tower from across Fifth Avenue S.F. Roberti Inside Trump Tower: New York's least desirable luxury property A view of the atrium inside Trump Tower Julian Stallabrass Inside Trump Tower: New York's least desirable luxury property A counter selling Trump merchandise including his 1987 book The Art of the Deal Takahiro Nagao Inside Trump Tower: New York's least desirable luxury property The Ivanka Trump jewellery shop inside Trump Tower Reuters Inside Trump Tower: New York's least desirable luxury property The waterfall in the atrium of Trump Tower Alistair McMillan Inside Trump Tower: New York's least desirable luxury property The atrium of Trump Tower featuring a Starbucks outlet Fletcher Inside Trump Tower: New York's least desirable luxury property A doorman stands by the lobby elevator in Trump Tower Reuters Inside Trump Tower: New York's least desirable luxury property Donald Trump merchandise for sale in a gift shop of Trump Tower Reuters Inside Trump Tower: New York's least desirable luxury property Trump merchandise on display by the entrance to a bar named after Trump in Trump Tower Reuters Inside Trump Tower: New York's least desirable luxury property Shoppers and diners in the atrium of Trump Tower AFP/Getty Inside Trump Tower: New York's least desirable luxury property A view up Trump Tower Getty

Last month, the president and his children sued both Deutsche Bank and Capital One to block the subpoenas, claiming they were “too broad.”

Deutsche Bank told CNBC on Wednesday following the judge’s ruling that they would not fight his order.

Capital One has not yet responded to the ruling.

Judge Ramos’s ruling follows a decision by a different federal judge on Monday, which concluded that the House Oversight Committee could subpoena Trump records held by the accounting firm Mazars USA. Mr Trump is appealing this decision.