The Trump administration has withdrawn the US from global agreements on climate change.