The ban will not affect existing housing but will impact construction of new luxury buildings.

The "poor doors" installed in high-end buildings were previously allowed under a program created in 2009 by former New York City Mayor Michael Bloomberg.

Mayor Bill de Blasio proposed banning poor doors in May as part of his proposal for the renewal of the tax-break program.

"Changes Mayor de Blasio just secured to the 421a program in Albany will mean that in the future, so-called 'poor doors' will be banned, more affordable housing will be built on-site and buildings will more fully integrate tenants," said Deputy Mayor Alicia Glen said in a statement.

For those who have been outspoken proponents of eliminating the "poor doors," the ban is a victory.

The ban is "what we've all been clamoring for," Manhattan Borough President Gale Brewer told CNNMoney.