Nearly £4 million has been invested in new sports facilities at a Torfaen school.