Twitter has accepted an offer from Elon Musk to renew its deal to buy the social network at an initial price of $44 billion, or $54.2 per share. The parties plan to close the deal within weeks.