A federal judge in Minneapolis has ordered immigration officials not to deport a Somali refugee convicted of assault, ruling that sending Somalis back to a country with no functioning government is illegal.