The opinion opens a door for future claims by countries seeking reparations for climate-related harm.