Would a SWE union push for work from home? I don't know how software unions have fared in the wild so far, or even any other type of engineers union in terms of work-from-home.
The Alphabet Workers Union has been fighting against RTO mandates for a while now, AFAIK. Not super successfully, but they've gotten some extensions and delays a few times.