Investors have been concerned about AI’s impact on IBM’s software and consulting businesses.