Sweden’s centre-right leader emerges as election loser and winner