Two U.S. lawmakers have introduced a bipartisan bill to ban government officials from trading on prediction markets.