The rebel withdrawal will pave the way for President Bashar al-Assad's forces to reclaim complete control of Syria's second city, handing the regime its biggest victory in more than five years of civil war.