Shares of the electric vehicle giant run by the oft-erratic billionaire Elon Musk rallied to their highest price since early this year in Friday trading, as Musk’s net worth, battered badly by his controversial purchase and leadership of Twitter, closes in on once again becoming the largest in the world.