The European Union has cleared the way for the establishment of deportation centres outside the bloc.