Looking at the maps of the districts, it’s pretty obvious to me that there are definite political or person motivations for the way many of them were drawn.
I would also suggest that there are many black and other minority Congressmen who are completely happy with the way they are drawn because they are virtually assured of staying in office as long as they want.
If the Supreme Court requires them to be drawn in a more compact way, the Republican legislature could do so and place 2-3 Democrats in the same district.
These districts are drawn to protect Congressmen in both parties.
Well, duh!
But just because it's political doesn't mean it's illegal.