Brown-Forman has emerged triumphant in the race to buy Tequila brand Herradura.