Tesla Inc. sold a significant chunk of its Bitcoin holding, an investment that helped legitimize the world’s largest electronic currency.