Shaykh Abdul-Muhsin al-Abbaad was asked the following question:
I am a Muslim residing in France and the French government gives benefits to its residents, like a family benefit or benefit for the unemployed and other than them. Is it allowed for us to take these benefits?
If a person is in need, then he is allowed to take it.
[Sharh Sunan Abi Dawood no. 272]
Faisal Ibn Abdul Qaadir Ibn Hassan