Court hears challenge to redistricting measure