Library of Congress hacked by 'foreign adversary' earlier this year, officials say