The Gaza peace deal would not have been possible without US President Donald Trump, Sir Keir Starmer has said.