The government had less to do with the current economic expansion than they take credit for.  But running large deficits during economic expansion is unwise, as it makes the next slowdown more challenging (the bond market will punish even higher deficits leading to higher borrowing costs, so the only levers for the government become tax hikes or larger cutbacks).