PM Boris Johnson has told his Irish counterpart not achieving a Brexit deal for the UK would be a "failure of statecraft".