Spain's highest court has overturned a four-year ban on US sportswear giant Nike Inc using its brand name on clothing in the European country.