The second step (oxidation of nitrite into nitrate) is done (mainly) by bacteria of the genus Nitrobacter and Nitrospira.
Bacteria convert the added nitrite or nitrate to nitric oxide.