Officials said Saturday they were nearing agreement on a Shi'ite demand to enshrine Islam as the only source of legislation .