Erik ten Hag turned to Harry Maguire and Jonny Evans to rescue Manchester United at Porto - and the centre-back pair delivered.