The Treasury Department announced Tuesday that it is selling off the last of its shares in the insurance company AIG. That brings to a close one of the largest and most contentious components of the financial-rescue efforts, at a nearly $23 billion “profit” to taxpayers.