In a nail-biting election, a clear loser emerged: the anti-immigrant Sweden Democrats lost ground for the first time since they were founded almost 40 years ago