Europe's top human rights court ruled that member states can turn back migrants unless they've been identified as people who were at risk of suffering or ill-treatment.