Special Sessions Judge (SC/ST) Kalpana Mishra rejected the application moved by the government on April 24.
Kasmi's counsel said that the government had said in its application that it wanted to withdraw the case in public interest and for the sake of communal harmony, but had not elaborated on both the points.
The court said the government did not file an affidavit with the application and despite being a confidential document, it was given openly instead of in a sealed envelope, the counsel said.
On the basis of these three points, the court rejected the government's application.
The Special Task Force of UP Police had arrested the two alleged HuJI operatives from near Barabanki railway station with explosives.
After coming to power, the Samajwadi Party government had announced to the review cases against "innocent" youths lodged in jail on charges of attacks in Rampur as well as in serial blasts in courts of Faizabad, Barabanki, Lucknow and also in Gorakhpur and Varanasi blasts.
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.