Conservative and far-right parties are poised to end Pedro Sánchez’s eight-year tenure as Spain’s prime minister after scoring a victory in national elections, joining a wider European trend toward demands for tighter immigration restrictions