The House has passed a bill refusing to allow the Library of Congress to update discriminatory subject headings.