Iran and Oman have agreed to establish a seven-mile-wide temporary transit route through the Strait of Hormuz.