Apollo Global Management Inc., one of the biggest backers of the AI boom, increased new lending to a record in the third quarter, but net income swung to a loss amid rising interest rates.