Islamic State faces the final territorial defeat as the US-backed Syrian force battling the jihadists says it is closing in on their last bastion near the Iraqi border, capping four years of efforts to roll back the group.