The statement that is true for both la Biblioteca Nacional de España and the Library of Congress is:
They were both founded in the eighteenth century.
Both libraries were established in the 18th century, making this the correct similarity between them.