The U.S. economy shrank from October through December for the first time since the recession ended, hurt by the biggest cut in defense spending in 40 years, fewer exports and sluggish growth in company stockpiles.