They are getting oil from Russia - and USA did not object.
Maybe out of geostrategic interests and because of the US policy in that part of the world? After all, other countries do business with Russia in public or in secret, and dependence on Russian energy cannot be broken just like that. I think it would be completely unfair to point the finger at India because it is doing something that other countries are doing anyway, especially most EU members.
Although according to the data on oil imports when it comes to India, it should be noted that India does not buy oil only for its own needs. Whether they are trying to profit from the current situation, or have secret agreements with someone to be a mediator for Russian oil, remains a question.