Turkey’s parliament approved a law early Wednesday that gives authorities greater power to regulate social media despite concerns of growing censorship.