Prime minister rewrites key address against backdrop of warnings he could face a leadership challenge