Officials are scaling back plans to shift prisoners into Afghan custody in a stark acknowledgment that the U.S. is likely to hold prisoners overseas for years.