President Donald Trump purchased a Tesla and thanked the company’s CEO, Elon Musk, for devoting “his energy and his life” to helping the Trump administration.