Etymology
Today it means: In a congratulating manner. Full definition →
From congratulating + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.