The US has warned shipping companies they could face sanctions if they pay Iran for safe passage through the Strait of Hormuz.