WASHINGTON—When Jean-Claude Juncker arrived at the White House on Wednesday, he had no idea how the meeting with President Donald Trump would end.

When asked on his flight from Brussels whether he was ready, after having pored through piles of documents stacked in blue folders, the European Commission president smiled and said: “No. We’ll have to see how it goes.”

Once...