Americans are losing a vast array of people and programs dedicated to keeping them healthy. State and local health departments responsible for invisible but critical work such as inspecting restaurants, monitoring wastewater for new and harmful germs, responding to outbreaks before they get too big — and a host of other tasks to protect both individuals and communities — are being hollowed out.