It did until a few days ago.
In practice, US foreign policy doesn't recognize international law and never really has.
The US could annex Afghanistan, and apart from the CCP doing a lot of complaining about it (primarily because they want access to Afghanistan's mineral wealth), nothing would happen.