Being in the US illegally does not come with criminal punishment. The remedy is to return the person to their country of origin. Not to a foreign prison. If the accused persons were criminals, they should have been prosecuted in US court with due process. Either way due process was ignored.