Massive eruptions that last months can cool down the earth because of the Ash cloud which reflects sunlight back into space, but once the cloud dissipates temps return to normal. The volume of CO2 is generally not significant enough to affect long term global climate, it would require a lot of volcano's erupting and for a long time, since the average effect of volcano's yearly is 1/100 of man's CO2 contributions.