After years of stalling before lawmakers in New York, legislation to end the so-called “gay panic” and “trans panic “ defenses appears poised to pass this week after Gov. Andrew Cuomo said Monday he had struck a deal on the issue with the state Legislature.

Lawmakers, over the weekend, introduced a new version of the bill that would eliminate those defenses, which currently 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.