The plan will give migrants temporary work permits and medical care – provided they stay in the south.