LONDON—BP PLC said it would slow its shift to lower-carbon energy, increasing spending on the oil-and-gas production that helped push the company to a record profit last year. BP in the fourth quarter joined its peers on both sides of the Atlantic in capitalizing on soaring energy prices, and the …