LANSING, Mich. (AP) — A Michigan judge has rejected a legal challenge to the state’s new rules governing lead in drinking water that were implemented after the Flint crisis.

Court of Claims Judge Christopher Murray ruled Friday in favor of Michigan’s environmental department, which set the tougher regulations last year. The lawsuit was brought by Detroit-area municipalities and water utilities that are concerned about the cost of replacing underground lead pipes.

READ MORE: Detroit Woman Goes From Part-Time Server 19 Years Ago To Now Owner Of Outback Location

Murray said the rules are valid, nor are they “arbitrary.”

READ MORE: Stimulus Check Latest: When Could You See Another Economic Relief Payment?

Under the rules, lead service lines connecting water mains to houses and other buildings will be replaced by 2040, unless a utility can show regulators it will take longer. The “action level” for lead will drop from 15 parts per billion, the federal limit, to 12 in 2025.

MORE NEWS: GM, Toyota, Target, and Others Say They Will Still Enforce Mask-Wearing In Texas

© 2019 Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.