Lawmakers in New York have struck an agreement on legislation that would close the so-called double jeopardy loophole, a section of state law that currently precludes state prosecutors from bringing the same charges against an individual who’s received a presidential pardon of federal crimes.

New York Attorney General Letitia James, a main proponent of the legislation, confirmed the agreement in a conversation with reporters at the state capitol Tuesday, saying lawmakers are expected to pass the bill at some point over the next two to three weeks.