Nitrogenase enzyme catalyses the nitrogen fixation in root nodules of leguminous plants. The reaction is as follows:
$N_2 + 8e^- + 8H^+ + 16ATP \rightarrow $
$2NH_3 + H_2 + 16ADP + 16Pi$
So, products of nitrogen fixation are both ammonia and hydrogen