Philadelphia is ending its indoor mask mandate, city health officials said Thursday night, abruptly reversing course just days after city residents had to start wearing masks again amid a sharp increase in infections.