European country on brink of becoming first to join EU since Brexit