Court filings by Reddit challenged the validity of the law that “infringes the implied freedom of political communication”.