Britain has been grappling with how to curb small-boat crossings, which have seen tens of thousands of migrants arriving annually on the shores of southeast England.