Spanish Energy Firm Gets Billions in Loans from Feds