The British oil giant will pay $4 billion in fines and other payments, the largest criminal penalty in U.S. history, to resolve claims with the Justice Department over the accident that badly harmed Gulf ecosystems and reshaped U.S. offshore drilling policy.