Battle over voting rights in legislatures around the country