Sheffield United won a tight Steel City derby 1-0 at Sheffield Wednesday.