Milotic used Safeguard, Aqua Ring, Dragon Pulse, and Twister.
The ribbon is the prize for the winner of the Wallace Cup Contest.
*waits for people to bawwww about "NO SWINUB EGG/RAZOR FANG DIS SUX!!!!11!!" *
If it's any consolation, the Wallace Cup ribbon qualifies as an official ribbon in all Contests anywhere. Go on, spare a neuron or two to figure out why that might make it at least as important plot-wise as a Swinub egg/Razor Fang.