America’s role in Afghanistan could last for years and cost upward of $10 billion annually just to finance an adequate Afghan security force, a top general said.