The National Council of Educational Research and Training (NCERT) has issued a public apology after a chapter on the judiciary in a recently published Class 8 social science textbook sparked a row.