By Dan Avery

The New York State Legislature voted Tuesday to ban so-called gay conversion therapy on minors, with Democratic Gov. Andrew Cuomo expected to sign the bill as soon as this week. The measure, which passed 57-4 in the Senate and 134 to 3 in the Assembly, will make New York the 15th state to ban the controversial practice, which is widely discredited by medical and mental health organizations.

“New York has a compelling interest in protecting the physical and psychological well-being of minors, including lesbian, gay, bisexual, and transgender youth,” the bill reads in part, “and in protecting its minors against exposure to serious harms caused by sexual orientation change efforts.”

The ban is part of a larger LGBTQ rights push announced by Cuomo last year, an agenda that includes prohibiting the so-called gay panic defense in court and adding gender identity to state human rights and hate crime laws. (The Gender Expression Non-Discrimination Act passed the Legislature today as well.)

Bans on conversion therapy — which seeks to change one’s sexual orientation or gender identity — repeatedly have passed the Democrat-controlled Assembly, only to die in the Republican-dominated Senate. But the GOP ceded its majority in the midterm election, paving the way for today’s victory.

Democrat Brad Hoylman, who authored the Senate bill, called conversion therapy “among the worst frauds in history.”

“We have to consider the message we are sending to LGBT youth today,” Hoylman said Monday after the bill passed committee. “That we have your back and you are perfect just the way you are.”“The State of New York has a responsibility to stop licensed mental health professionals from causing irreparable damage to LGBT youth and their families,” Hoylman said when advocating for the ban in 2014.

Mathew Shurka, a member of the anti-conversion therapy group Born Perfect, told NBC News he "feel[s] safer” after the bill’s passage, but he stressed that the fight against the discredited practice is still “not over.”

“The next step is testing the law,” he said, “because there are several working conversion therapy practitioners in New York State.”

According to the American Academy of Pediatrics, conversion therapy “can provoke guilt and anxiety while having little or no potential for achieving changes in orientation.” Techniques used to attempt to change sexual orientation and gender identity have included inducing nausea and vomiting, providing electric shocks, psychotropic medication and hypnosis. And according to a 2009 report by the American Psychological Association, the treatment has been associated with depression, suicidal thoughts, substance abuse, high-risk sexual behaviors, homelessness and other issues.

The Williams Institute at UCLA School of Law recently estimated that 20,000 LGBTQ youth between the ages of 13 and 17 will undergo conversion therapy by a licensed health care professional before they turn 18, and approximately 57,000 will be subjected to the treatment by a religious leader or spiritual adviser. In 2012, California became the first state to prohibit conversion therapy on minors, and since then more than a dozen other states, the District of Columbia and several localities across the U.S. have followed suit. A number of state legislatures are currently considering bans, including Texas, Minnesota and Indiana.

The issue has also entered the multiplex, with two recent films recounting the struggles of young people subjected to conversion therapy: “The Miseducation of Cameron Post,” starring Chloë Grace Moretz, and “Boy Erased,” with Lucas Hedges, Nicole Kidman and Russell Crowe.

FOLLOW NBC OUT ON TWITTER, FACEBOOK AND INSTAGRAM