The western world was in recession caused by the US. The conservatives , with the support of the Liberals and NDP ran deficits in conjunction with other governments to counter the effects of the recession.
The Liberals who criticize Harper for running deficits would have more credibility if the liberals did not support the spending. 
BTW most of the spending was on infrastructure.