they could do it against Taliban because they were not the legally recognized legitimate government of Afghanistan, and the Taliban have very few allies internationally and are widely considered a terrorist organization. Even that was somewhat unprecedented and criticized. To do it to an internationally recognized sovereign state scares a lot of powerful people in a lot of other nations