The UK’s first secure school is set to open to pupils after four years of delays, the Ministry of Justice has announced.