But there are still troubling disparities in New York City’s life expectancy depending on gender, race and income.