Northern Territory public schools will receive an extra billion dollars in funding, under a new agreement between the territory and commonwealth governments.