The number of bans nearly tripled nationwide as conservative politicians and state legislatures got more involved.