Complex sentence: It was a contest that Palmerston won; having entered the administration as the expected Whig heir, Russell left it having been overtaken by Palmerston.
Split into simpler sentences: It was a contest that Palmerston won. Having entered the administration as the expected Whig heir, Russell left it having been overtaken by Palmerston.