What are you talking about? Was Pakistan part of UNSC when it went about Nuclear black-marketeering to the highest bidder? Or how about Iran or North Korea or Libya? Did UN smash them all?
The truth about UN is that it is a toothless tiger as demonstrated by the UNSC members themselves when they abuse their own rules and fail to reach consensus even on important issues like terrorism.
Point is, India will stand by UN rules only when they don't go against our national interests. Once they demonstrably do go against our interests, we will ignore them just as easily.