Shareholder Richard J. Tornetta brought the suit, accusing Musk and the Tesla board of a breach of fiduciary duties.