A peace agreement brokered by President Donald Trump between Israel and Hamas appeared to be holding at week’s end. The fighting stopped and Israeli hostages and Palestinian prisoners were exchanged.