Wal-Mart said Friday it will pay the U.S. government $ 11 million to settle charges that it used illegal immigrants to clean its stores in the United States .