A diploma is a certificate given by an educational establishment to show that someone has successfully completed a course of study. We see "diploma" in "diplomatically". Tom is congratulating someone on graduating. 
' ' Congratulations ; you graduated , ' ' said Tom diplomatically .