Diogo Dalot scored the game-winning goal on a beautiful strike from deep as Manchester United held on to defeat Sheffield United 2-1.