China passes foreign sanctions law