From Technical Debt to Intelligent Infrastructure: AI’s Role in Enterprise Transformation