U.S. tells judge military prisoners can't challenge detention in Afghanistan