The U.S. economy contracted at an annual pace of 0.9% in the second quarter, the second-straight quarter of decline, following over a year of strong growth.