The United Nations has welcomed a deal between the Syrian army and foreign-backed militants, which allows humanitarian access into the besieged parts of the city of Homs.