But agency warns that deal must lead to improved humanitarian access, as five million people are "in urgent need of aid".