New York state lawmakers took another step Tuesday toward ending the so-called “gay panic” and “trans panic” defenses, which allow those facing murder charges to say their actions were driven by an extreme emotional disturbance incited by a victim’s sexual orientation or gender identity.

The State Senate approved legislation that would bar individuals from using that defense, which has been sharply criticized by the New York State Bar Association and others within the legal community.