In the second blow in a day against the U.S. president's stonewalling efforts, Donald Trump, three of his children and the Trump Organization on Wednesday lost their bid to block Deutsche Bank AG and Capital One Financial Corp. from providing financial records to Democratic lawmakers investigating Trump's businesses.

In a decision read from the bench after hearing arguments, U.S. District Judge Edgardo Ramos in New York said Congress has the legal authority to demand the records, clearing the way for the banks to comply with subpoenas issued to them by two U.S. House of Representatives committees last month.

The committees have agreed not to enforce the subpoenas for seven days, the judge said. It was the second time in three days that a judge had ruled against the Republican president in his fight with Democrats, decisions Trump's lawyers are expected to appeal.

The president is facing pressure from a number of investigations tasked with looking into his personal finances, businesses, and determining whether he obstructed justice during special counsel Robert Mueller's inquiry into Russian election meddling — efforts the president has attempted to evade.

"I think the president would be wise to come to the realization that our legitimate areas of inquiry are going to be supported by the courts," Rep. Dan Kildee, a Michigan Democrat and member of the House ways and means committee, said in an interview.

Rep. Brad Sherman, a Democratic member of the financial services committee, was more cautious, saying he expected the decision would be appealed.

Lawyers for the Trump family and Trump Organization declined to comment on the decision.

Democratic New York Gov. Andrew Cuomo has the final say on a bill that could allow congressional committees to see the president's state tax returns. The records wouldn't be available to the public. (Seth Wenig/Associated Press)

N.Y. eyes tax returns

Also on Wednesday, New York lawmakers gave final passage to legislation that would allow Trump's state tax returns to be released to congressional committees that have, so far, been barred from getting the president's federal filings.

The Democrat-led state senate and assembly both approved the measures, sending them to New York Gov. Andrew Cuomo, a Democrat. A spokesperson has said the governor supports the principle behind the legislation but will review the bill carefully before deciding whether to sign it.

The legislation doesn't target Trump by name, but it would allow the leaders of the U.S. House ways and means committee, the Senate finance committee or the joint committee on taxation to get access to any New York state tax returns filed by elected officials and top appointed officials. The legislation would apply to personal income tax returns, as well as business taxes paid in New York.

An earlier version of the proposal passed the state senate two weeks ago and would have allowed congressional committees to get any New Yorker's tax returns, regardless of whether they held public office. However, lawmakers later narrowed the legislation to address concerns that it went too far, prompting the state senate to hold a second vote on the new language Wednesday.

Assemblyman Andy Goodell spoke against the bill on Wednesday at the state capitol in Albany, N.Y. Republicans have railed against the legislation, with the state senate Republican leader describing it as 'bad public policy.' (Hans Pennink/Associated Press)

Republicans oppose bill

New York Republicans have railed against the bill. State senate Republican Leader John Flanagan called the legislation "troubling" and "bad public policy."

"This bill is nothing more than political showmanship, and we all know it," said assemblyman Andy Goodell, who represents a mostly rural western New York district.

Republicans also blasted Democrats for going after the president instead of focusing on challenges closer to home.

"The fact that we're talking about taxes in this house is ironic because we're not talking about the taxes that New Yorkers pay, which are the highest in the nation," said Sen. Rob Ortt, from Buffalo area.

New York state assemblyman David Buchwald speaks Wednesday in favour of legislation authorizing state tax officials to release, if requested, individual New York state tax returns to Congress. (Hans Pennink/Associated Press)

'Nobody is above the law'

But the proposals' Democratic sponsors — Sen. Brad Hoylman, of Manhattan, and assemblyman David Buchwald, of Westchester County — said the legislation promotes government transparency at a time when Americans need to know whether their elected leaders are putting the public's interest first.

"We are affirming Congress's role as a co-equal branch of government and the sacred constitutional principle that nobody is above the law, not even the highest elected official in the land," Hoylman said.

The proposed changes to state law were made amid a battle going on in Washington over Trump's federal tax returns.

Treasury Secretary Steven Mnuchin has said he wouldn't comply with a congressional subpoena seeking six years of Trump's tax returns, in part because the request "lacks a legitimate legislative purpose." U.S. Rep. for Massachusetts Richard Neal, chairman of the House ways and means committee, has threatened to go to court to get the administration to comply.

Democrats are seeking six years of Trump's personal and business tax returns to aid a committee investigation into whether the IRS is doing its job properly to audit a sitting president and whether the law governing such audits needs to be strengthened.

With New York being Trump's home state and the headquarters of many of his business enterprises, the legislation could give Democrats access to the president's state tax returns at a time when the White House and Democrats who control the House continue to wrangle over the president's federal tax returns.

Much of the information on Trump's state returns would mirror the information included on a federal return, giving the Democrats a potential end run around the IRS if they wished to take it.

No public access to returns

If Congress does request and obtain Trump's state tax returns, that doesn't mean the public gets to see them. Under federal law, the confidential information in the returns is supposed to be for the committee's eyes only.

The New York bills have no time limitation on the tax filings that could be shared with Congress. They require that the returns be requested "for a specified and legitimate legislative purpose," wording that could ostensibly give state officials the ability to refuse some requests they felt were primarily political in nature.

The New York bills would become law immediately upon being signed by Cuomo, though it could be delayed by a court challenge.