Obama pledged during the 2008 presidential election campaign that he would close the military prison.