PM leaves first meeting with Macron with ‘renewed confidence and optimism’ about tackling illegal migration