Contraction was much larger than expected, but higher spending softened blow