The social media platform's shareholders approved Musk's takeover on Tuesday, setting the stage for a legal battle as the billionaire tries to wriggle out of his deal.

The acquisition values the company at $54.20 per share and is a significant premium over the current stock price. The shares opened at a higher price.

The company said that the measure passed based on a preliminary count and that a final vote count would be provided to shareholders later.

Tuesday's vote is the latest chapter in the Musk- Twitter saga, which began as a surprise takeover offer and has evolved into a full-blown circus.

In July, Musk announced that he was calling off his plan to take the company private, after buying up a chunk of the company's stock. He claims that the misrepresentation of the number of fake accounts on the platform amounted to a violation of their agreement. Due diligence was not done by Musk when he struck the deal.

The lawsuit was filed to make Musk go through with the purchase. The trial is going to start in Delaware Chancery Court.

Complicating matters further is a recent whistle blower complaint from Peter Zatko, who alleged that his former employer lied to Musk about bot accounts. Experts told Insider that the complaint could be used in Musk's case.

Zatko is going to testify before Congress.