South Africa had called on court to order Israel to ‘immediately cease its military operations in Gaza’