When, why and under which circumstances Yashodhara shunned her veil needs to be mentioned. Without it, the generalization that removing veil wasn't punished is vague.
This is the entire text.
"However, no matter who the ÅšÄkya girl GopÄ encountered, whether it
was her mother-in-law, her father-in-law, or any other member of the inner quarters,
she did not cover her face. So people criticized her and spoke badly of her, saying,
"A new wife is supposed to be covered, but this one is always exposed."
The ÅšÄkya girl GopÄ heard this rumor, and in front of all the folk of the inner quarters,
she said these verses:
"A noble being shines when uncovered,
Whether sitting, standing, or walking,
Like a precious gem beaming,
Radiant on the pinnacle of a standard.
"Whilegoing, a noble being shines,
And likewise while coming, a noble being shines.
While rising or sitting,
A noble being always shines.
"A noble being shines when speaking,
And even when silent, a noble being shines,
Just like a nightingale does
Whenever seen or heard.
"Whether he wears clothes made of kuśa grass,
Poor quality clothes, or his body is emaciated,
One who is replete with good qualities and is adorned by those qualities
Shines with his own radiance. [158]
"A noble one without evil
Shines perpetually,
Whereas an immature being who commits evil
Never shines no matter what he wears.
"Those who have evil in their hearts but whose speech is sweet
Are like a jar of poison topped off with nectar.
Like a rocky stone rough to the touch, they are hard inside;
Being with them is like caressing a viper's head.
"The truly gentle are approached and honored by all,
Just like a sacred bathing bank, which sustains everyone.
Noble beings are like a jar filled with milk and curd; [F.81.b]
It is extremely auspicious to behold such a pure nature.
"Those who have long shunned evil companions,
Who are now surrounded by precious spiritual friends,
Who relinquish evil deeds and adhere to the teaching of the buddhas
Are fruitfully auspicious to behold.
THE PLAY IN FULL 115
"Those who control their bodies thus control all physical faults;
Those who control their speech never confuse their words;
Those with guarded senses are mentally composed and serene.
What good is it to cover the face of such beings?
"Others may be covered in a thousand garments,
But if their minds are revealed to lack shame and modesty
And if they have no good qualities and lack truthful speech,
Then they move through the world more naked than naked. [159]
"There are those who conceal their mind and restrain their senses,
Who are satisfied with their husbands and do not pine after others.
When they shine unconcealed, like the sun and moon,
What good is it to cover their faces?
"
Furthermore the great sages, those who know the thoughts of others,
And the assemblies of gods all know my thoughts.
They know my discipline, qualities, restraint, and carefulness;
So why should I veil my face?"
Monks, when King Åšuddhodana heard these eloquent verses from the ÅšÄkya girl GopÄ,
he felt satisfied and happy, and he cheerfully rejoiced. He then offered her a pair
of fine cotton fabrics that were set with many different types of jewels, a pearl necklace
worth a hundred billion silver coins, and a garland of gold set with red pearls.
The king then offered this sentiment:
"Just as my son is adorned with good qualities,
His bride too is radiant with her own good qualities.
That these two pristine beings have come together
Is just like butter and clarified butter."
Basically, Yashodhara said that if someone's thoughts are pure and all gods know her love for her husband why need for veil?