An agreement could restore shipping through crucial waterway, paving way for peace talks between Tehran and Washington.