Judge says environment minister’s denial of the harm caused is at odds with science, and gives her a deadline to prescribe long-delayed pollution regulations