Social protection of the population as a function of the modern state