Bosses thought they won the return-to-office wars by imposing rigid policies. Now they’re facing a wave of legal battles | Fortune