A federal judge in Chicago has dismissed a lawsuit by plastic pipe maker JM Eagle against a U.S. law firm that filed hundreds of asbestos personal injury cases against it.