A bill meant to curb the power and reach of the president’s pardon in New York was granted final approval by the Democratic-led state Assembly on Tuesday and now goes to Gov. Andrew Cuomo’s for his signature.

The bill would allow New York prosecutors to bring cases against those who have worked in a presidential administration or a member of the president’s family after receiving a pardon.

Lawmakers at a press conference on Tuesday insisted the bill was not aimed at President Donald Trump, who is being investigated by Attorney General Letitia James’s office.

“We try to tread very carefully because we didn’t want to target the president, we wanted to target the abuse,” said Assemblyman Joe Lentol at a press conference flanked by James and Sen. Todd Kaminsky.

A former federal prosecutor, Kaminsky said the legislation is in line with what other states have on the books.

“We know the president’s pardon power is sweeping; there’s no debate about that,” he said. “But when we’re confronted with a corrupt or capricious use of that, New York does not have to stand idly by.”

The bill’s passage is a victory for James, who had sought the legislation earlier this year. Her office is reportedly investigating ties between Trump’s businesses and major lenders, such as Deutsche Bank.

“This loophole, which effectively allows the president to pardon state crimes, deserved to be closed,” she said. “It’s really critically important that individuals understand the power of state’s rights.”

The Assembly is expected on Wednesday to approve a bill that would allow congressional Democrats to gain access to the president’s New York tax filings. The bill will include an amendment set to pass in the state Senate that narrows the scope of the tax legislation to elected officials.

Republicans called the focus on Trump at the state Capitol a waste of time that does little to help New Yorkers.

“Bringing politics of Washington into this chamber I think is a complete waste of time,” said Brian Kolb, the Assembly minority leader.

“I think there’s enough grandstanding to go around here as well as in Washington. This is all political grandstanding and it’s using New York state taxpayer money to advance political causes and not do one thing to take people out of poverty.”