Councillors have given the go-ahead for the new school to be built.