A loner obsessed with Nazis and extreme right-wing ideology was sentenced on Wednesday to spend the rest of his life in prison for murdering lawmaker Jo Cox in a frenzied street attack that stunned Britain a week before the European Union referendum.