Banco Santander stepped in to take over stricken rival Banco Popular Espanol in a deal brokered by regulators that imposes billions of losses on investors.