New York Gov. Andrew Cuomo (D) signed a new law on Wednesday that gives the state the authority to prosecute those accused of crimes even if they have a presidential pardon.

The bill effectively closes a double jeopardy loophole that usually prevents individuals charged on the federal level from being prosecuted by a state for the same offense. The measure was written to specifically target former Trump administration officials who may receive a pardon, an idea the president has regularly suggested for aides who have run afoul of the law.

“No one is above the law and New York will not turn a blind eye to criminality, no matter who seeks to protect them,” Cuomo said in a statement Wednesday. “The closure of this egregious loophole gives prosecutors the ability to stand up against any abuse of power, and helps ensure that no politically motivated, self-serving action is sanctioned under law.

The law goes into effect immediately and applies to all past and future offenses. New York officials will be able to prosecute any pardoned individual who served in the executive branch, worked for a president’s election or transition team or for a for-profit or nonprofit group controlled by a president.

President are able to pardon only federal crimes, not those committed at the state level.