Sweden’s AI startups are soaring. Legora, which automates tasks for lawyers, is raising capital at a $1.8 billion valuation.