Ruling says customers will be “horrified” by the huge bill for the emergency restructuring