[Another interpretation of (Genesis 29:31): "And the LORD saw that Leah was hated."] But "and Rachel was barren ('aqarah)" — she was the principal ('iqqar) of the house, for Jacob subjugated himself only for her sake, as it is said (Genesis 29:20): "So Jacob served seven years for Rachel." Whence do we know that she was the principal of the house? From the fact that the sons of Leah themselves acknowledge it. Boaz and all his Sanhedrin were from the sons of Judah, from the sons of the sons of Leah. And what is written (Ruth 4:11)? "And all the people who were in the gate, and the elders, said: We are witnesses. May the LORD make the woman who is coming into your house like Rachel and like Leah, who both built the house of Israel; and do worthily in Ephrath, and be renowned in Bethlehem." From here we learn that Rachel is the principal of the house, as it is said: "and Rachel was barren ('aqarah)." Rabbi Berekhyah the Priest, son of Rabbi, said: She had no principal womb (root '-q-r), as it is said: "and Rachel was barren," and so forth. Even so, she and her children are the foundation ('iqqar) of the world, for none establishes Israel in the world except the children of Rachel.
Rachel the Barren Wife as Principal of Jacob's House
Midrash Tanchuma Buber, Vayetzei 15:1
[ד"א וירא ה' כי שנואה לאה], אלא ורחל עקרה, היא היתה עיקר הבית, שלא נשתעבד יעקב אלא בשבילה, שנאמר ויעבוד יעקב ברחל (בראשית כט כ), מנין שהיא היתה עיקרה של בית, שכן בניה של לאה מודים, בועז וכל סנהדרין שלו מבני יהודה היו, מבני בניה של לאה, ומה כתיב ויאמרו כל העם אשר בשער והזקנים עדים יתן ה' את האשה הבאה אל ביתך כרחל וכלאה אשר בנו שתיהן את בית ישראל ועשה חיל באפרתה וקרא שם בבית לחם (רות ד יא), מכאן שרחל עיקר הבית שנאמר ורחל עקרה. אמר ר' ברכיה הכהן (בר) [ברבי] לא היה לה עיקר מיטרין, שנאמר ורחל עקרה וגו', אעפ"כ היא ובניה עיקרו של עולם שאין מעמיד ישראל בעולם אלא בניה של רחל.