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