European Union aims to 'place migrants in detention'