The International Court of Justice has ordered Israel to halt its offensive on Rafah in Gaza as part of a ruling in a genocide case brought by South Africa.