A secondary school in Bangor looks set to benefit from almost £24million of investment, which will expand and modernise the setting.