King Charles III has hailed US-UK ties at a state dinner in the White House.