The Treasury Department and Internal Revenue Service are issuing rules that provide hundreds of billions of dollars in tax relief to big companies and the ultrarich.