Macquarie-owned utility on verge of covenant breach as it loses investment-grade rating