Man United produced a spirited performance to beat Ipswich Town 3-2 at Old Trafford on Wednesday night.