Judge rules against NCAA on compensation