England edged out France the hard way – but was exactly what they needed