The pandemic ushered in a new way of working remotely, but even companies that initially championed the model are changing their tune.