Spain's Supreme Court has ordered Codorniu to withdraw all of its emery-white cava bottles from the market, agreeing with a lawsuit filed by rival Freixenet.