An extraordinary legal showdown took place last weekend over President Donald Trump’s invocation of an 18th century wartime act to deport hundreds of immigrants to a prison in El Salvador.