Obama was unable to close Guantanamo because of Congressional opposition to holding any of the men in the United States. That ultimately became a ban on transferring them to U.S. soil for any reason, including trial, making the failure to close the detention center part of his legacy.