The government and Facebook have come to an agreement on some amendments to the proposed news bargaining code, which is currently before the Senate.