Ah yes, so what you really meant to say was that they agreed to temporarily stop attacking Israel
Why would you leave that out?
Anyway, the US did strongarm Israel into making a deal to freeze the situation in Lebanon. But of course not the way Iran and Hezbollah wanted it to. They wanted to give Hezbollah an opportunity to regroup and rearm for the next attack on Israel
Here's a pretty objective article on the matter (which includes an important second angle besides the matter in Lebanon that caused the division in the Iranian regime)