Trump traded millions in stocks while promoting companies such as Nvidia, Apple and Microsoft, which critics said raised ethical concerns.