A federal judge in New Orleans on Tuesday approved an agreement between BP and the Justice Department for the company to plead guilty to 14 criminal charges and pay $4 billion in penalties for the