US President Donald Trump criticized the Department of Education for high spending while the nation ranks 40th globally.