Trump threatens to veto bill on foreign influence in elections