China and Iran have repeatedly denounced what they regard as illegal unilateral Western sanctions and have vowed to protect their interests.