Not sure. The behavior you posit sounds like a virus, but the regular cells would lack the machinery to translate the artificial genes. Defenses against bacteria are mostly directed against surface proteins and these proposed organisms would have regular proteins
Organisms with the new base pairs probably wouldn't have so much of an advantage that they completely replace all life that currently exists.
However, it does raise an interesting question if some future species would be able to figure out evolution and the origins of life, since there would literally be intelligently-designed organisms running around.
Why hasn't life found a better way to fix nitrogen yet? Nitrogenase is a godawful enzyme... Wastes three hydrogen gas molecules for each turn of the crank.