Treasurer Josh Frydenberg says the government has agreed to changes to the media bargaining code but the key measures have been maintained.