New York City's top health official is stepping down next week after guiding the city through most of the pandemic.…