Plans to repair a vandal-hit pavilion building in a Sunderland park to “secure its long-term future” have been given the green light.