there is no war going on in Egypt, they are not fleeing in imminent danger lives by the time they reach Israel's borders. Nevertheless, since Egypt doesn't have the resources to care for them, they can starve to death slowly there if a solution is not found for them. The proper solution is one in coordination with Egypt and the international community. Egypt, which has plenty of land in the Sinai that it's not using and can barely keep control of, and which should have primary responsibility for them anyway as the first port of entry, should provide land for them in the SInai on Israel's border + security on their side. Israel should provide water, energy and technology to set up communal farms/light industry since we have plenty of experience in turning penniless refugees into successes. The UN should provide funding for food like they do for Palestinian, Syrian etc refugees and the EU should provide funding for technology transfer, since this would be keeping refugees from trying to get to Europe. This would have many advantages: instead of being a drag on Israel's and Egypt's economy they would be doing something productive, and learning skills for improving their country when they return to it. In addition, if they stay for a long time, they will provide a friendly buffer between Israel and the Egyptians - not a bad idea these days. Also they should be allowed to sell whatever they produce to either Egypt or Israel - also not a bad idea since Egypt can barely feed it's people and food prices are too high in Israel as well.
Netanyahu at Holocaust memorial ceremony: Nazis slandered Jews before destroying them (Haaretz)