The ability of certain organisms to capture and convert simple atmospheric Nitrogen and then convert it into pre-amino acids (e.g., ureides), amino acids, and ultimately into structural and catalytic proteins is certainly one of the many wondrous accomplishments of Nature.
For the past 50 years agricultural genetics research has been interested in transferring the genetics concerned with N2-fixation into crop plants (e.g., corn and wheat); however, there has been limited success to date. Mainly because N2-fixation involves not just transferring the "NIF operon" but the also a whole assemblage of tangential biochemical circuitry / pathways that support / coordinate with the NIF operon in order for it carry out N2 fixation. Thus, the experimental approach should be to thought of as "wholistically" as possible to contemplate making any meaningful in-roads into this huge project.