EU states have been battling over how to deal with migration to European shores for a number of years