Critics have said the new law could be used to restrict unwanted protests by a government that has already been accused by the European Commision of undermining the rule of law and democracy in Poland.