It doesn't seem that there's a lot they can do after you've already flown the flights. And frankly I don't see United matching mileage credits and denying you credit on LH.
The conscience side is another story, although it's debatable whether flights on another carrier can violate ua's contract of carriage.