President Trump surprised a South African delegation with a video montage of apartheid-era chants from Mr. Malema.