The passport containing the visa is the one which must be used to enter the US.
Take a look at this thread:
You probably will receive the PreCheck designation on your boarding passes if you enter your KTN (known travelers number) in your frequent flier profile(s) regardless of which passport you used to enter the US.