Spain election: Socialists win amid far-right breakthrough