The president can move these prisoners to any country who will take them. Just not here.
Then why was there such a kerfuffle about him ‘transferring’ the 5 worst ones for Bergdahl? Because they were ‘ransom’? I thought Congress had to sign off on releasing terrorists.