It doesn't, the US is just Israel's proxy warrior in this fight. (cf. the Clean Break memo, etc)
> just Israel's proxy warrior in this fight
That's a charitable way to put it.
Iran, Israel, Kingdom of Saudi Arabia... There is so much going on there. Are they all at conflict with one another? Who are allies? How does this work?
On a long enough time scale, everyone is the bad guy.
Israel is an ally of the KSA against Iran, though they both pretend not to be for domestic consumption. They are indeed both in conflict with one another, because in truth Iran is really the only country in the Middle East that could threaten to become an independent power, on the level of say, Turkey.