Nonmembership of the Paris Agreement doesn’t exempt countries from duty to fight global warming, ICJ says.