A group of investors and state officials accused Tesla’s board of failing to provide proper oversight of Musk’s leadership.