The International Court of Justice will rule on South Africa's request to order a halt to Israel's Rafah offensive in Gaza.