U.S. missteps in Afghanistan stretch back to the Bush administration’s decision to court the warlords.