The lawsuit said McDonald’s violated U.S. antitrust law by conspiring with independent franchisees to fix prices using algorithms trained on nonpublic data.