Rishi Sunak is facing the biggest challenge of his premiership as former Conservative party divisions over hard and soft Brexit are re-emerging just as he appeared to be on the cusp of a deal with the EU to end the protracted row over the Northern Ireland protocol.