Every war is about 'influence' and 'influence' is about 'money'.
But sometimes nations DO act against their own interests. I believe a large part of America's policies in the Middle East is driven by the Israel Lobby which controls Washington. But the Lobby has made a 'symbiotic' relationship with the Military Industrial Complex, so it is now more than the Lobby. America is failing in the Middle East because of irrational policies, driven by the pressure groups within America. There is no happy outcome for America in the Middle East.
As for the Strait of Hormuz, that, along with the few islands in the Persian Gulf being contested between Arabs and Iran, have their place in the tensions but I don't think they amount to much. And I don't believe America needs the Middle Eastern oil much--that was one more 'urban myth'.
To understand American geopolitics, you all start better understanding American domestic politics. An Obama, driven by different lobbies, secured a JCPOA with Iran. And a Trump, driven by different lobbies, unilaterally nullified JCPOA.