Mass layoffs at federal health agencies began this week, producing anxiety about workers, public health and economy.