A Democrat member of the state legislature has introduced a bill avowedly aimed at punishing Elon Musk for his political activities.