Many major tech and finance firms are shifting away from the flexible work ethos that flourished during the Covid pandemic.