Companies are borrowing more money than ever to build artificial intelligence systems and expand into private credit markets.