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