Troubled utility tells court hearing for emergency loan that restructuring costs could top £200mn