The measure was adopted as police personnel were targeted on social media following violence during the CJP march in July