AI financing has been harder and more expensive to come by as the capital-spending boom comes under more scrutiny.