WASHINGTON (Reuters) - Technology giants Microsoft Corp and Hewlett-Packard Co used offshore units to shield billions of dollars from U.S. taxes by taking advantage of loopholes and stretching the limits of the tax code, a U.S. Senate panel said on Thursday.