procter & gamble co. claimed a victory today in a legal fight with three competitors in the cookie business , announcing that the companies have agreed to pay p & g $ 125 million for violating its patent on crisp and chewy cookies .