Facebook says it will restore news pages in Australia after a breakthrough in talks with the government.