Legislative regulation of the sessional relations in Russia in the XVIII - early XX century