Man United beat Rangers 2-1 at Old Trafford as Bruno Fernandes' injury-time winner bailed them out of trouble in the Europa League.