An Indonesian court ruled that Nadiem Makarim, a former education minister, was guilty of corruption and sentenced him to 10 years in prison.