We stand with Israel right to defend itself. But we can't favor one side alone.
As for vote, first understand what was the subject of the vote.
It was for following International Laws in in Gaza and East Palestine. Also, it demanded independent inquiry of the casualties.
So, India didn't have any reason to oppose it.
Unfortunately, as sub-continental people's characteristic, emotions are getting better of rationality, Indians felt that we made a wrong decision.
We had to vote Yes on this issue if you read the subject of the vote carefully.