Battery to power NSW schools, hospitals