Exxon Mobil Corp plans to buy XTO Energy Inc for about $30 billion in stock, in a move that thrusts the U.S. energy giant to the forefront of North America’s fast-growing natural gas industry.

With the buy, Exxon, the largest publicly tr