Schoolgirl who joined ISIS should be allowed to return to UK, judges rule