The legislature also passed a bill Wednesday that would restrict disputes over the map to a few courts in the state to places like those in New York City, Erie County and Westchester County.