Shares of Twitter — which have fallen in value over the past several days — rebounded some on Wednesday after the social platform sued Elon Musk to try and force him to stick to his agreement to buy the company.