The judge said one district dilutes the votes of Blacks and Latinos.