Can someone help explain who is Mahendra?
It's another name of Indra, this is clear from this alternate translation:
Having addressed thus in a rage, Vali removed the golden garland gifted by Indra, his father, and stood ready for the combat. ~Source
Any references to how he obtained this pendant?
In above shlokas also, it's mentioned that it was given ...