Trump administration has frequently sparred with South Africa over legacy of apartheid and criticism of Israel.