Outlandish districts created for electoral gain are a major distorting force in the contemporary U.S., but they belong to a long tradition.