That's giving the Trump administration too much credit. Before the war there were pieces about how oil companies were doing worse under Trump than under Biden[1]. Of course, you could argue that the Iran war is Trump finally responding to oil companies, but given that it only started more than a year after he took power, it really makes you wonder whether Trump is bumbling along, or playing some 5d chess with the global oil market. On the flip side there's plenty of evidence that he doesn't want high oil prices, for instance lifting sanctions on Iranian and Russian oil.
[1] https://www.economist.com/business/2025/02/06/donald-trump-l...