The Prime Minister said he would look at any policies to tackle illegal migration if they were cost-effective and did not breach international law.