A judge has ruled Shakira should face trial on tax evasion charges following a lengthy investigation.