Microsoft is giving up a major lease near its Redmond, Washington, headquarters as a yearslong expansion of its own campus nears completion, setting up the local market for an injection of more than half a million square feet of office space and raising questions about its other leases in the area.