El Salvador’s leader has become a vital ally for the US president as his administration cracks down on immigration.