Elon Musk returned to federal court to defend himself against a class-action lawsuit that alleges he misled Tesla shareholders with a tweet about an aborted buyout that the billionaire defiantly insisted Tuesday he could have pulled off, had he wanted.