This prevents the US from appointing knighthoods (or other titles) on its citizens, but does permit US citizens from receiving knighthoods from others.
And this prevents any individual state from entering into any 'Agreement or Compact' with a foreign power but not the Federal government.