writ of habeas corpus or presidential pardon
I think the record for being held without trial is 27 months. There was a Scotus ruling saying that was perfectly ok. I remember looking that up when clive Bundy was approaching the.2 year mark..