President Trump announced that a memorandum of understanding with Iran to end the war will be signed electronically within hours, though an Israeli airstrike on Beirut’s southern suburbs delayed the signing and drew sharp threats from Tehran.