Some had asked for visas more than three years ago and the Taliban takeover made their cases urgent, court told.