Legislatures across the country are preparing for battles over political boundaries that could lock in partisan control for the next decade, driven by Supreme Court rulings that limited federal involvement in the state redistricting process.