Plans to install more than 700 solar panels at a South Shields secondary school site have been given the green light.