NEW ORLEANS >> More than five years after the worst offshore oil spill in U.S. history fouled beaches, coated seabirds in thick goo and threatened delicate marshes, BP has agreed to pay a record settlement to affected states in hopes of bringing an end to a legal drama that has cost the company billions.