Troubled lender CIT Group, one of the key financiers to the apparel and retail industry, has warded off an imminent bankruptcy threat by agreeing a $3bn loan and begun plans to restructure its liabilities.