As has already been said on the thread, JFK made his comments to dispel the idea that the Pope would dictate in a Kennedy White House.
Yep.
Speech.
Transcript.