His journey is one of the strangest wrongful-detainment petitions to emerge from the Trump administration’s immigration crackdown in Minnesota.