Judge rules against mining company in pollution case