Salvadoran immigrant at center of high-profile legal battle over president’s mass deportation efforts is leaving for Spain