A vacation bench of justices A K Sikri and U U Lalit granted interim relief to the Akhilesh Yadav government which had filed an appeal against the High Court order.
The High Court had earlier sought the details of the criminal cases withdrawn by the state government across the state in last three years.
The High Court had observed that state was withdrawing prosecution while keeping in mind "the class consideration".
It was alleged that cases lodged against persons of a particular class were being withdrawn by the state government.