The case could dramatically impact the way states draw electoral districts.