If the goal was opening the strait, then Trump would direct the US military to stop attacking and then the strait would open up. Peace is the only path they have to open the strait and there is every reason to think negotiation would succeed in having the strait open in a matter of days.
By process of elimination, the war goal either seems to be some sort of relatively indirect attack on China's energy security or simple support of Israel in Lebanon by keeping the Iranians out of it. Or maybe Trump has also reached the tipping point into senility; a scenario which seems increasingly likely.