The Shulchan Aruch permits eating in a beit knesset for the need of a mitzvah, and rules that one should give food only to one who will bless. Rav Shlomo Zalman Auerbach and the Chazon Ish discussed honoring a guest distant from Torah so as not to cause a greater stumbling block. The Chazon Ish also asked who recited Birkat HaMazon at the seudah.