A group of enzymes that catalyzes the transfer of a phosphate group onto a nitrogenous group acceptor. EC 2.7.3.