Twitter owner Elon Musk had previously said he would not take the step as he values free speech.