The government’s halting response represents chronic weaknesses and years of underinvestment, compounded by President Trump’s open hostility to the federal bureaucracy.