U.S. hands over Afghan prison that was a sticking point