Prediction markets have taken off in popularity, drawing billions of dollars in trades. Some states have tried to ban them.