The Australian government and the mining industry have reached an agreement on the issue of profit tax.