To settle a class action lawsuit, the companies have agreed to lower the rates they charge merchants and not raise them for at least five years.