Tens of thousands demonstrate nationwide against security legislation that would restrict sharing images of police.