The parliament’s vote is intended to end months of delays in completing Sweden’s security policy shift.