The Turkish leader, a strong critic of Israel and its military campaign in Gaza, said that he had explained to Mr. Trump the need for a two-state solution in the Middle East to achieve regional peace