A unilateral blockade.
Nuclear weapons cannot be used for most conflicts.
But about 30 middle East countries discovered they can bring the highly leveraged US to their knees by mining/drone attacking the two middle east shipping chokepoints.
Strait of Hormuz — Iran, Oman, United Arab Emirates; very near: Saudi Arabia, Qatar, Bahrain, Kuwait, Iraq
Bab el-Mandeb — Yemen, Djibouti, Eritrea; very near: Saudi Arabia, Somalia, Egypt, Sudan, Oman
(maybe add the straits of singapore too)
The USA has all the oil it needs for decades. It just needs to remove the barriers to exploit it. ( Insert joke about removing the canadian barrier to the oil. )
It can use those decades to develop more energy efficiency, deport the invaders ( who consume ressources, so ressources last longer ), more electricity generation from other sources like hydroelectricity with high voltage transport lines from Alaska, and nuclear, etc.
One problem: there are NO more large hydro projects left in the Western world. You cannot ship electricity that far, it loses too much of it along the way.
Manitoba tried building at one of the last locations that could be profitable. Thanks to our communist NDP gov't at the time it will never actually pay for itself. The USA gets cheap power from it but not our citizens.
Nuclear is the best and ONLY answer to the upcoming energy shortages. They should have been built long a go but here we are.