Apple is finalizing plans to bring its workers back into the office, albeit under abbreviated circumstances, underscoring the increasing role high-profile tech giants play in establishing a blueprint for corporate America in returning employees to workplaces as the pandemic shows signs of easing.