Tax deal extends, shrinks energy efficiency credits