Parliament passed the bill to reduce the country's reliance on shipping through the Strait of Hormuz amid the war in the Middle East.