Immigration into Switzerland rose again last year, taking the foreign population further above 2 million as the wealthy country’s open-door policy for Europeans faces a right-wing challenge.