Last year, American officials initially resisted Mr. Karzai’s demands to turn over authority over detainees to the Afghans, saying they were worried that Afghan officials would be too quick to release dangerous militants who would then return to the battlefield.