To fund heavy spending on infrastructure for artificial intelligence, companies have leveraged a growing list of complex debt-financing options.