Twitter on Monday confirmed the sale of the company to Tesla and SpaceX boss Elon Musk for $44 billion.