The Trump administration is using legal settlements with allies in state governments to enact new immigration restrictions.