A Hartlepool primary school is set to be rebuilt as part of a £1.4 billion new funding announced in Wednesday’s budget.