The judge applied too low a threshold before restricting presidential advertisements