Many Spanish banks ran into deep trouble when the country's booming real estate sector collapsed in the wake of the financial crisis in 2008 and 2009. Huge debts are still on their books.