A wave of progressive prosecutors have won office across the country. Now, Republican-controlled state legislatures and governors are trying to curtail their power, or strip them of it altogether.