Twitter shareholders have approved a $44bn deal for the world’s richest man to buy the company.