US hands over detained Afghans after protests