Shakira could stand trial for alleged tax evasion in Spain, according to a judge's ruling.