Malaysia's parliament has approved a new law for publishing and sharing false information on digital platforms and social media, but critics are concerned the law could impact free speech.