Sheffield United completed the double over their Steel City rivals with another hard-fought win.