Through a series of obscure regulations, the Treasury carved out exceptions to the law that mean many leading American and foreign companies will owe little or nothing in new taxes on offshore profits, according to a review of the Treasury’s rules, government lobbying records, and interviews with federal policymakers and tax experts. Companies were effectively let off the hook for tens if not hundreds of billions of taxes that they would have been required to pay.