The plaintiffs had argued that the map violated a state ban on partisan gerrymandering that the state’s voters passed in 2010.