The state Legislature on Tuesday passed a bill to extend legal protections to transgender New Yorkers.

The Democratic-run Assembly and state Senate overwhelmingly approved the Gender Expression and Non-Discrimination Act.

GENDA had been blocked in the prior years by the Senate, then under Republican control.

The Democrats reclaimed the majority for the first time in a decade in last November’s blue wave election.

The measure makes transgender residents a protected class in housing, employment and public accommodations.

Lawmakers passed a separate bill that bans the controversial practice of “conversion therapy,” which is aimed at changing the sexual orientation of lesbian, gay, bisexual and transgender youths.

Gov. Cuomo is expected to sign both bills into law.

“The passage of GENDA – 16 years in the making – will codify our progressive reputation and ensure that all New Yorkers, regardless of their gender identity or sexual orientation are treated equally and with respect,” said Sen. Brad Hoylman (D-Manhattan)

Supporters said the two pro-LBGT bills are the first to pass since New York approved the Marriage Equality Law to cover gay nuptials in 2011.