A federal appeals court ruled Friday that states can regulate prediction markets like gambling, dealing a major blow to the booming industry.