The states banned government employees from trading on insider information—a growing concern as prediction markets related to politics surge in popularity.