GTMO is an agreed to part of a treaty with the US.
Obama cant just give it back.
You’re correct, he can’t give it back legally if Congress objects.