SAN FRANCISCO — Spending by consumers has dominated the American economy for decades, usually the largest driver of economic growth. But in the first half of this year, spending by companies on ...