The Modi government has eliminated the no-detention policy for classes 5 and 8, enabling schools to retain students who do not pass their exams. This decision affects over 3,000 central government schools and aims to enhance educational standards.