The Taif agreement , which ended Lebanon 's civil war , committed Syria to move its troops to Lebanon 's Bekaa Valley ahead of later talks on a complete pullout .