Dutch brewer Bavaria has won a legal battle in the Spanish courts over a trademark conflict with Bayerischer Brauerbund.