Fernandes scored with a cross intended for Cristiano Ronaldo that sailed fortuitously into the net on 54 minutes and converted a spot kick in stoppage time to put his side into the knockout stages with a match remaining.
Ronaldo set the tone for the match with some early showboating when he used a shoulder to redirect a long throw into the path of William Carvalho, whose powerful volley sailed over the bar. Bentancur was at the centre of the action again a few minutes later when his outstretched leg met a cross from the left from Mathias Olivera, trickling through to Darwin Nunez who failed to convert from close range.