State legislatures and courthouses in Republican-controlled states have largely led the charge.