Paul- We have suggested solutions, perhaps you have not processed them.
They are---Try the prisoners in a court of law-- in America or perhaps somewhere neutral if preferred, and deal with them according to the findings.
The guilty ones could go to serve a gaol term* in America, and the others could be returned to their countries of origin-- or offered residence in either the US or a country that was willing to have them. They would have been found 'not guilty' and thus are owed something for their wrong imprisonment.
Or, if they are citizens of another, allied, country they should be dealt with by their country of citizenship.
* I deliberately do not suggest a death penalty. There is none in my country and I do not think that killing people in such a situation makes for anything but martyrs.