They should stand trial in a US court, and if they’re acquitted, they should be set free, like anyone else. That’s a pretty fundamental principle of the rule of law.
If they’re indeed innocent and can’t be deported because nobody will take them, then they have to be allowed to stay in the US. That’s unfortunate but not really their fault given that the US brought them into its jurisdiction against their will in the first place.
It seems transparently unfair to capture someone and then keep them forever because nobody else wants them.