A court order requiring the government to resume processing asylum applications reignited violent protests against immigration in South Africa.