Global investment in low-carbon energy surpassed $2 trillion for the first time, but still falls short of climate goals.