Donald Trump bought up shares of companies just ahead of decisions by his own administration that enriched those companies.