Payment for order flow, in which brokers and market makers split the profits from retail investors’ trades, became a money-making machine for Robinhood, placing it far ahead of more-established rivals.