Real Madrid wins legal case against Spanish League