So-called purple voting districts that change hands between Republicans and Democrats—rather than reliably conservative and liberal districts—are an underappreciated source of rising political polarization in state legislatures, according to a study led by a Princeton University researcher.