The question: My husband has secular brothers. We see importance in inviting them for a Shabbat meal, both to preserve family ties and so that they and their children will hear Kiddush, recite blessings, etc. 1. Is it permitted to invite them? 2. What should we do if they ask to come? 3. What should we do with wine or food they brought with them on Shabbat? 4. Is there a difference in this matter between Rosh Hashanah and Shabbat? Thank you!
The answer: Thank you for your inquiry. This question is one of the hard and important questions of our generation, in which there is a mixture of light and darkness, and there is almost no home in which the question does not arise in one form or another. The question also came up for discussion in Beit Hillel's Halakhic Beit Midrash, and I refer you to read the detailed document they composed: https://beithillel.org.il/post-45/. But one cannot be exempted with nothing, and so I will answer your questions briefly.
On the whole, there is great room to invite the family members – both in order to preserve the family bond, which is an important value in its own right, and in order to preserve a spark of holiness also among those who have distanced themselves from it. Many halakhic authorities have suggested inviting for a full Shabbat, and if the guests decide to leave in the middle of Shabbat, that is their decision and not the hosts'. I sometimes feel there is an element of "lip service" in this, since we know at the time of the invitation that they will not really stay for the whole Shabbat; but it seems to me that in any case there is value in it, to remind us that there are not only positive sides here but also a harm to the holiness of Shabbat.
Regarding the foods they bring with them (assuming, of course, that there are no kashrut problems in them, nor any Shabbat desecration beyond bringing the dish): if they bring the things before Shabbat/the holiday, of course there is no problem at all. If they drove the food with them on Shabbat, there is a dispute among early and later authorities whether food that "traveled" on Shabbat has the law of food prepared on Shabbat, which is forbidden until after Shabbat, or since no change is discernible in the food, it is not forbidden (see Biur Halakha, ch. 318, s.v. achat). Here the matter must be handled with sensitivity: if it is possible to avoid using the foods they brought, so much the better; but if they will be offended, and our gain would be offset by our loss, one may be lenient and use the foods and wine they brought.
In these laws there is no difference between Shabbat and a festival.
All the best, and may you be inscribed and sealed for good,
Yosef Slotnik, Ma'ale Gilboa
"This answer was given by Rabbi Yosef Slotnik of the rabbis of Beit Hillel."