Israeli Prime Minister Benjamin Netanyahu worked to mend ties with Republican presidential candidate Donald Trump on Friday and offered measured optimism about progress toward a cease-fire deal for Gaza, nearing the end of a contentious U.S. visit that put on display the growing American divisions over support for the Israeli-Hamas war.