Legal regulation of the functioning of the Russian Orthodox Church in Russia in the 20th century