Earnings from Tesla and Meta pushed artificial intelligence stocks down despite largely topping expectations, as the companies’ low and high capital expenditures, respectively, heightened investor anxiety about AI spending.