BP said it would increase annual oil and gas spending to $10 billion and cut planned annual investment in energy transition businesses by more than $5 billion.