Judge rules museum ‘rightfully owns’ Nazi-looted painting