Sweden earned promotion to the Nations League A-division after a 3–2 victory against Bosnia-Herzegovina in Solna.