A potential agreement to restore shipping through the Strait of Hormuz could ease pressure on global energy markets, though attacks in the region continue.