Nick Bloom, a Stanford economist who studies work culture, said the shoes-off trend was partly “the pajama economy in action.