In early May, with its legal options dwindling and investors impatient, BP Plc saw a chance to negotiate what became a $18.7 billion…