Elon Musk, the chief executive of Tesla, and Jeff Bezos, the Amazon founder, ate with President-elect Donald J. Trump. Both have courted Mr. Trump.