BP Chief to Retire, Having Steered Oil Giant Through Gulf-Spill Fallout