The International Court of Justice ruling adds to mounting pressure on Israel in response to its months-long military offensive in Gaza.