CANBERRA, Australia — Australia's government says Facebook had agreed to lift its news ban after reaching a deal on legislation.