Polls indicated that a right-wing bloc could win Sunday’s elections, potentially unseating Prime Minister Pedro Sánchez, one of Europe’s most prominent left-wing leaders.