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

"This bill stands for the principle of transparency with regards to top officials' tax returns, recognizing that shedding light on conflicts and potential conflicts of interest is an important public purpose," said Democratic Westchester Assemblyman David Buchwald.

The Democrat-led Senate and Assembly approved the measures Wednesday, sending them to Gov. Andrew Cuomo, a Democrat. A spokesman 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 that would have allowed congressional committees to get any New Yorker's returns, regardless of whether they held public office. Lawmakers later narrowed the legislation to address concerns that it went too far, prompting the Senate to hold a second vote on the new language Wednesday.

Some had concerns that the bill would get challenged in court on the grounds that it was aimed only at one person, the president.

"This bill is aimed at tax transparency and reversing an individual's actions who has overturned 40 years of political tradition by not releasing his tax returns," said Democratic State Sen. Brad Hoylman of Manhattan.

New York Republicans have railed against the bill. John Flanagan, who leads the Senate GOP, called the legislation "troubling" and "bad public policy."

"Instead of political gamesmanship and trying to harass the president of the United States, we should be using these last weeks of session to do something that actually helps the people of New York, lowers their taxes, makes New York more affordable," said Nicole Malliotakis, a Republican who represents the state Assembly for parts of Staten Island and Brooklyn.

The proposed changes to state law were made amid a battle going on in Washington over Trump's federal 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. Richard Neal, D-Mass., chairman of the House Ways and Means Committee, has threatened to go to court to get the administration to comply.

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.

With New York being Trump's home state and 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.

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.

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.

This week, the New York state legislature also gave final passage to legislation to amend what is known as the "Double Jeopardy Law" and allow individuals whom Trump pardons to be brought up on state charges. Cuomo has said he also supports that legislation.

------

Information from the Associated Press was used in this story.