Plans for new security fencing and gates at a Stourbridge primary school to prevent anti-social behaviour and vandalism have been approved.