Palmerston died in 1865, and after a brief ministry led by Russell, Derby returned to power. When did Derby resign