Manchester United came from two goals down to draw 2-2 with City and secure Champions League qualification.