The structure of the sentence is: "They produce a scent like NOUN". For example, you could say "They produce a scent like roses" or "They produce a scent like peppermint".
Your sentence, which is correct, creates a noun clause to play the role of the noun.
"That" is an excellent word for creating noun clauses. Here are some examples:
"THAT YOU WON THE RACE pleases me."
"I think THAT TOKYO HAS 13 MILLION PEOPLE"
In your sentence, the noun clause is "that emitted by an ant larva".
I have one suggestion that is unrelated to your question. Try to use good verbs. The only verb in your sentence is "are", which contributes almost nothing. Your good verbs are hiding behind your participles, "producing" and "emitted". Those are adjectives, not verbs. To improve your sentence, transform one or both into real verbs:
They PRODUCE a scent like that emitted by an ant larva.
They PRODUCE a scent similar to that of an ant larva.
They EMIT a scent similar to an ant larva's.
Those sentences are superior to yours because the most important word of the sentence, the verb, boldly expresses the purpose of the sentence.