Prime Minister Pedro Sanchez's government is kicking against the prevailing mood among Western nations.