US court denies right to challenge Bagram detention