The temporary resumption of hostilities highlighted Donald Trump’s twin failures in controlling his Israeli ally and cajoling Iran to accept a lasting truce.