A federal judge on Friday ordered the Trump administration to arrange for the return of a Maryland man to the United States after he was mistakenly deported to a notorious El Salvador prison.