Resilient Learning-Based Control for Synchronization of Passive Multi-Agent Systems under Attack