Who was ultimately returned to office after Palmerston's death?