Eight councils sued the bank to cancel long term loans they took out between 2006 and 2008.