Nearly a million passports and photo IDs were left unprotected