Switzerland's anti-immigration Swiss People's Party rebounded from searing losses four years ago to become the largest parliamentary faction after the election, official results showed, as two environmentally-minded parties lost ground despite record glacier melt in the Alpine country.