All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad, sallallahu ‘alayhi wa sallam, is His Slave and Messenger.
There is no harm on you in using this house, and there is no problematic aspect regarding your legal ownership of the land or the house in terms of the inheritance. Merely putting the soil without government permission does not render the house unlawful to you. The soil taken from the canal silt is not the personal property of a particular person. In principle, it is lawful for whoever takes it. The most that could be said is that you violated the state regulations in this regard.
Allah knows best.