State’s legal responsibility and legislative function