Is U.S. coordination with Taliban justified?

A Politico report claims that to expedite the Afghan withdrawal process, our military provided the Taliban with a list of names of people who were trying to leave the country. Did this put people at risk?