Shareholders in United Breweries (UB) have approved the sale of a major stake to Scottish & Newcastle (S&N).