Then, last month, they were fired as part of President Donald Trump’s widespread purge of federal workers. Suddenly, the future of their public health missions was in question.