Migrants stuck in legal limbo at Greek border