New court filings detail his ordeal after his deportation became a flashpoint in Trump's immigration crackdown.