Bankruptcy judge makes important ruling impacting Madoff investors