Donald Trump has criticised corporate DEI programs as discriminatory and suggested the US Department of Justice could investigate whether such efforts violate the law.