The regime wants to survive and to inflict some face-saving damage on the two big satans. That’s it. It can always build more missiles after the current conflict is over.
The problem, of course, is that Trump has now committed himself to be Bibi’s lawn guy, so the war is likely to resume at regular intervals for the foreseeable future.