Former Thai Prime Minister Yingluck Shinawatra has been ordered to stand trial over her role in a controversial rice subsidy scheme that cost the country billions.