The United Nations’ top court on Friday ordered Israel to do all it can to prevent death, destruction and any acts of genocide in Gaza, but the panel stopped short of ordering an end to the military offensive that has laid waste to the Palestinian enclave.