Investors believe the electric car company led by Elon Musk will benefit from its support for the president-elect.