Legal challenges push governments on climate