‘We’ve reached the end of a shameful chapter of the Trump Administration in which the entire power of the American federal government was effectively used to torture a single man’