Section 2. In the administration of any trust which is a ''private foundation'' as defined in section 509 of said Code, or which is a ''charitable trust'' as defined in section 4947(a)(1) of said Code, there shall be distributed, for the purposes specified in the trust instrument, for each taxable year, amounts at least sufficient to avoid liability for the tax imposed by section 4942(a) of said Code.