Norway edged Denmark 3-2 in the UEFA Nations League, with Erling Haaland's two goals proving decisive.