Walmart Inc. said on Thursday it will pay $282 million to settle a seven-year-long investigation into whether its overseas units in Mexico, Brazil, China and India violated the U.S. Foreign Corrupt Practices Act.