Target Corp. plans to leave a downtown Minneapolis headquarters building where it has leased almost 1 million square feet for at least 15 years as it shifts to remote work, a sign that even companies that have survived the pandemic flush with cash may not be in the mood to expand their office footprint.