My suspicion is that parties who stand to make a lot of money off this deal (or stop losing money if the war ends) had Trump's ear, possibly the Saudis or Gulf States, possibly Kushner and Witkoff (the dynamic duo of failed diplomacy in Trump's second term).
Maybe by November everyone will forget a war that’s cost a dozen or so lives and tens of billions of dollars*.
* Direct military costs are now about $29 billion. That doesn’t include economic costs.