The House on Wednesday passed a bill that would ban members of Congress from trading individual stocks.