President Cyril Ramaphosa ordered 510 troops to remain in KwaZulu-Natal until the end of November to support police amid anti-immigrant violence.