President Donald Trump said the US would halt all future funding to South Africa because of its new land-expropriation law.