In the case of BPs issued by other airlines rather than the airline you are flying on it's best to reprint them when you arrive in the US using the US airlines systems.
So in your case I would have ignored the LH printed UA BP and got a new UA generated one.