# whose name was Shua
Shua is a Canaanite woman who married Judah.
# he ... went to her
This is a polite way of saying that he had sexual relations with her.