Swedish lawmakers had said they would boycott this year’s Nobel Prize ceremonies in Stockholm after the foundation initially invited representatives of the three countries to attend.