A classic trick in the Trump playbook: take credit for a company’s sale or investment that was already in the works.