A previous law that activists said was used to silence opponents was struck down by the Supreme Court.