The Swedish selection caps an intense race amid global shipbuilders for a program pegged at almost $3 billion.