The Supreme Court in the Nandini Sundar & Ors. Vs. State of Chhattisgarh, held that enacting a law bythe legislature contradictory to previous Court orders cannot be viewed as Contempt of Court.
The Supreme Court has said any law made by Parliament or a State legislature cannot be held to contempt of court.
Every State Legislature has plenary powers to pass an enactment and so long as the said enactment has not been declared to be ultra vires the Constitution or, in any way, null and void by a constitutional court.
Judiciary is vested under the Constitution with the power to resolve interpretive doubts and disputes about the validity or otherwise of an enacted law.
However, the interpretative power of a court does not contemplate a situation of declaring exercise of legislative functions and passing of an enactment as an instance of a contempt of a court.