Comment by rexpop
You join a union, or you join a different company. Or you threaten to, at any rate.
Understand your leverage: job marketplace bargaining power stems from your willingness and ability to do the latter, while structural bargaining power stems from your willingness and ability to strike and/or engage in sabotage.
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.