World leaders, as well as those within Gaza and Israel, have largely welcomed the agreement of a first-phase deal to end the war.