Secretary of State Adrian Fontes’ election manual had sought to ban certain activities at polling places. The judges said it would infringe on political speech.