Shearman & Sterling is laying off 38 employees, including 12 associates and 26 business professionals, the law firm confirmed Wednesday, citing the need to align capacity with "existing client demands."