Trump formally pulls out of Paris agreement