This is why zoning is really bad. Those company could have converted some of those space into housing. Provide it to the employee as benefit for cheap/free. I believe quite significant number of employee would happily live on campus.
One way, the company could maybe give some amount of money to help with the moving out cost or maybe allow for the employee to stay for a bit longer while they looking for new place to live.
What I mean by conversion including demolishing the office building and building apartment instead not just retrofit existing office building to be a living space.