Set up to hold detainees from US wars in Afghanistan and Iraq, it has long been a source of controversy.