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