The settlement is one of the largest in the history of the Federal Trade Commission, which sued Amazon two years ago.