Turkey agreed to clear the way for Sweden to join NATO