Planning permission for the second phase of a £12 million project to improve a secondary school has been granted