The Library of Congress has notified lawmakers of a “cyber breach” of its IT system by an adversary and a hack of emails.