U.S. tech companies are stepping up office perks, hoping to make employees feel happier about returning.