Real Madrid wins legal case against La Liga