A bill aimed at making it harder for past presidents to avoid state prosecution if accused of criminal wrongdoing has garnered the approval of New York’s upper legislative branch.

The Senate passed the No Citizen is Above the Law Act (S.151), 40-21, on Wednesday, and it has been moved to the state Assembly for its consideration. It is inspired by ex-President Donald Trump, who is currently under a state grand jury investigation in Manhattan.