From the Gilded Age to the 1980s that inspired “Bonfire of the Vanities,” New York City has long been home to extremes of rich and poor. Yet, for all its stark disparities, New York has also been a place where working people from poor backgrounds could realistically aspire to a middle-class life.