US stocks edge higher as airlines, railroads, and banks jump

Big gains for banks and transportation companies like airlines and railroads took US stock indexes slightly higher Wednesday. Other parts of the market didn’t move much.

United Continental had its best day in two years after it said strong demand is resulting in higher ticket prices, while railroad company CSX said it’s still cutting costs and improving operations. Their competitors also jumped.

Banks and other financial companies got a boost from strong second-quarter results, and Warren Buffett’s Berkshire Hathaway made its biggest gain in almost seven years after it loosened its rules on stock buybacks.

Brad McMillan, chief investment officer for Commonwealth Financial Network, said the combination of strong consumer spending, rising business investment, and good economic data is likely to lead to another quarter of strong earnings growth.


‘‘Everything is going right at the moment,’’ he said. ‘‘This quarter’s earnings are going to reflect that.’’

The S&P 500 index rose 0.2 percent, to 2,815.62. The Dow Jones industrial average added 0.3 percent, to 25,199.29. The Nasdaq Composite declined less than one point to 7,854.44. The Russell 2000 index of smaller-company stocks gained 0.3 percent, to 1,691.87.

Stocks have been rising this month, even as trade tensions with China continue to mount, as investors anticipate solid second-quarter earnings reports from US companies. The S&P 500 is up 3.6 percent so far in July.

United Continental surpassed Wall Street projections and said strong demand is resulting in higher prices this summer travel season. Its stock surged 8.8 percent.

CSX said its profit climbed 72 percent in its latest quarter as it kept cutting costs and improving operations. The results were stronger than analysts expected; the stock added 7.1 percent.

Maintenance supply company W.W. Grainger made the biggest gain on the S&P 500 after it blew past analysts’ estimates in the latest quarter. It posted strong growth in the United States, with more business with both large and medium-size customers. And it raised its forecasts for the year. The stock jumped 11.2 percent.


Berkshire Hathaway, the conglomerate that owns Geico and other insurance companies, jumped as investors hoped it would give some of that money back to shareholders by buying back its own stock. The company had $108 billion in cash and short-term investments as of March.

Berkshire’s Class B shares jumped 5.3 percent in heavy trading. Other financial companies including Morgan Stanley, M&T Bank, and Northern Trust climbed after their quarterly reports.

Federal Reserve chairman Jerome Powell wrapped up his testimony to Congress about economic and monetary policy. He said the trade war with China might make inflation speed up, but continued to express a very positive view of the state of the economy overall.

McMillan, of Commonwealth, said Powell’s comments were so upbeat that he wonders if the Fed is really reckoning with the risks posed by tariffs and higher interest rates. ‘‘I’ve never seen a central bank look quite that confident, and frankly it makes me nervous,’’ he said.

While investors are focusing more on company earnings than trade policy at the moment, US uranium mining companies rose after the Commerce Department started an investigation into the impact of uranium imports on US national security. That could result in tariffs, similar to the investigation into steel and aluminum imports that resulted in big taxes on steel from the European Union, Canada, Mexico, and Japan.


Energy Fuels, one of the companies that requested the investigation, rose 3.9 percent. Uranium Energy added 1.3 percent.

The European Union fined Google a record $5 billion Wednesday for using the market dominance of its Android mobile operating system to force handset makers to install Google apps, reducing choice for consumers. The company said it plans to appeal. Shares of Alphabet, Google’s parent company, took a small loss.

Bond prices slipped. The yield on the 10-year Treasury note rose to 2.88 percent from 2.86 percent. That sent big-dividend stocks like household goods companies and utilities lower.

Benchmark US crude recovered from an early loss and rose 1 percent to $68.76 a barrel in New York. Brent crude, used to price international oils, added 1 percent to $72.90 in London. US crude has tumbled 8 percent in July but is still up 42 percent over the last 12 months.