The ruling is a significant legal victory for the singer who had faced tax evasion allegations in Spain.