A potential U.S. government shutdown loomed. Wall Street was also headed for an unusually strong September.