The bill was criticized by civil liberties groups and citizens. But President Rodrigo Duterte is hardly known for his emphasis on freedoms.