Some lawmakers and schools are resorting to tech bans.