Two of the world's top clothing retailers, Spain's Inditex SA and US-based Gap Inc, have resolved a dispute with Peruvian manufacturer Topy Top after it agreed to let its workers form a union.