So, in my opinion, I would also say that everyone has to protect their own, since both of you started at the same time, both excavated and both filled again. But I know that the law sees some things differently. There are views such as that the party causing the disturbance must keep the party being disturbed free from any burden caused by the disturbance. Someone could actually come up with the idea to say that when B's garage was built, there was no soil there. You are filling up your property again, so you have to ensure that his garage remains intact. But I am a layman; a real lawyer is not allowed to provide advice here anyway, so better consult a lawyer before you take a position in court that is untenable.