The same thing happens here. Courts are allowed to compel speech as a method of remedy, but my recollection is that this is sometimes successfully challenged.
An interesting variant I’ve seen on anti-smoking banners at convenience stores is “A federal court has ordered a Philip Morris USA to say: …”