A last-gasp Wayne Rooney penalty sent unconvincing Manchester United into the FA Cup fourth round at the expense of Sheffield United.