Many Republican state officials are aligning with Trump’s policies by pledging to help him crack down on illegal immigration. Some Democratic state officials are mounting a resistance movement.