Prime minister has also lured MPs from rival parties in recent months as he seeks to counter Trump’s threats