President Trump has been expressing frustration with the leaders of Israel and Russia as they escalate conflicts while he seeks to broker ends to the wars in Gaza and Ukraine.