Coinbase is buying The Clearing Company as it expands into prediction markets and broadens its product lineup beyond crypto trading.