Defense contractor Booz Allen Hamilton has agreed to pay $377 million to settle a long-standing Justice Department lawsuit alleging that the Northern Virginia-based company overcharged the U.S. government to help cover losses in other areas of its business, federal authorities announced.