Defendants accused of murder in New York will no longer be able to plead those charges down to manslaughter by saying their actions were the result of an extreme emotional disturbance on discovering that someone is gay or transgender.

Lawmakers in the state Legislature gave final passage to a bill Wednesday to remove that option, commonly called the “gay panic” or “trans panic” defense.