Tesla Inc. must face an investor lawsuit over Elon Musk’s notorious 2018 tweet about taking the electric car maker private.