The International Court of Justice, the UN's highest court, has issued a landmark advisory opinion on states' legal obligations to tackle climate change, which could pave the way for litigation over reparations.