All parties are opportunistic. With the tables turned, Congress would do the same.
The lesson the BJP learned here is you don't blindly oppose anything the party in power does. Hopefully this lesson has made the BJP "grow up". Kind of like accusing Pakistan without thinking... which ironically allowed Pakistan to dodge blame. The BJP grew up and doesn't do that any more (mostly!).