To be part of a society is to work together, if you've shown to be willing to go the extra mile for your fellow citizens, it's a good sign of being a good society member.
Its easy for the French political elite to sign laws like this, but the social and economic burden of these decisions are borne by the lower classes.
Its much more likely that this is a decision to add an extra 12,000 Macron voters to the rolls.
Valuing people who put their lives on the line during a major healthcare crisis is the right thing to do.
https://link.springer.com/article/10.1007/S00148-017-0636-1
"Immigrants from Western countries have a positive fiscal impact, while immigrants from non-Western countries have a large negative one"
This has nothing to do with those people's culture or willingness to work or something like that. If a German immigrant had the same disadvantages, he would struggle just as much.
Furthermore, the point is moot anyways, because the economical value of a citizen goes beyond simply tax-payments minus benefits-received. These people are also customers that local businesses depend on, and any money spent on benefits will mostly directly flow back into the local economy.
Another important point is that these disadvantages disappear over the generations.
Another VERY important fact is that immigrants actually save us from the massive costs of an increasingly 'grey' society (due to low birth rate).
I'm not going to put every reason here how immigrants provide benefits. But I hope it's clear that there's a little bit more involved with determining economic impact than just tax minus benefits.