This Swedish word is presumably cognate with the English "doom" - which used to mean "judgement" until the Normans exported the French word. I believe on the Isle of Man a judge is still called a Doomster, or something like that.