Interest rate swap agreements will cost Portugal $1.8 billion and help Santander get some new loans on its books.