The United Nations and several countries have welcomed the finalisation of an agreement between Iran and the United States, describing it as an important and vital step towards the peaceful resolution of the conflict.