The minority centre-left government ruling Sweden on Saturday announced it has reached a deal with the opposition that will avert what would have been the country's first snap elections in more than half a century.