The thing is, this type of evil is present throughout the Muslim world. Pretending we have some special duty in Afghanistan while ignoring the worse state in Saudia Arabia is just blatant hypocrisy.
It's official, there is a treaty. It needs to be ratified by the senate, but I think it will pass.
https://www.npr.org/2020/02/29/810537586/u-s-signs-peace-deal-with-taliban-after-nearly-2-decades-of-war-in-afghanistan