The world's highest court Wednesday declared that states have a legal obligation to tackle climate change and that failing to do so was a "wrongful act" that could open the door to reparations.