Beijing says new rules are necessary to fight ‘extremism’ but rights groups have called similar restrictions repressive.