The two parties that control the state legislatures have worked vigorously and creatively to erect barriers.