SPAIN has won a historic legal battle agains US salvage company Odyssey to have 594,000 gold and silver coins from a 19th century shipwreck given back.