So this is not a clear-cut matter, because with these favors judges apparently assume a tacit exclusion of liability. Then there would have to be gross negligence or intent, which probably won't be the case.
Of course, you can check with the insurance to see what they say. If they cover the damage, then it's okay. But I don't want to rule out that the "question of fault" might still be raised there; the friend wouldn't just have sprayed for fun. Rather, he most likely had the "order" from you for it, whether he would then have had to make sure everything was properly masked off himself, I rather don't believe.
To some extent, you have to take some responsibility yourselves and should definitely be glad if the insurance pays. However, it is also not impossible that they argue with the tacit exclusion of liability, and in that case you yourselves would be responsible. It’s not a harsh accusation either, since this can certainly happen on construction sites, but in principle you should have made sure the windows were masked off. Or did he start spraying on his own initiative?