A Herefordshire school is to benefit from £663,000 of improvements, with money from recent housing developments nearby.