As the heads of state traded jokes during their dinner toasts, King Charles referenced previous comments by Mr. Trump aimed at European allies he accuses of freeloading on defense since World War II