Move by social media company follows rollout of China’s national security law