Israel and Hamas’ agreement to the initial phases of a plan to end fighting in Gaza is a “moment of profound relief that will be felt around the world”, Sir Keir Starmer has said.