Judge rules for news organizations in public records lawsuit