The duke’s one-day trip was his first official overseas trip since Covid.