U.S. knew of torture in Afghan prison, continued transferring prisoners anyway