Hundreds of fighters and civilians in three besieged parts of Syria have been evacuated under a truce deal brokered by the United Nations.