Democrats and Republicans have filed dozens of cases challenging the rules and outcomes of state redistricting processes in recent months, clogging state and federal dockets across the country with hearings and motions.