“The Supreme Court has previously ruled that gerrymandering based on political affiliation is permissible.”