The United Nations and Syria have reached a deal to allow civilians to leave areas of Homs under army siege for more than 18 months, the city's governor said Thursday.