Judge rules Dodgers can sell media rights