Former President Obama thanks staff: "This has been the privilege of my life"