Is the thing labeled a temperature and pressure relief valve? or is it a valve to shut the water off to the heater itself? A clue would be that the pipe coming out of that valve runs to a drain, or sometimes just down to the floor. Once we understand what kind of valve is leaking, we'll be better able to help.