Saints ground out a crucial Gallagher Premiership win at Sixways to solid their place in the top four.