When Saudi Arabia’s powerful energy minister met with Prince Mohammed bin Salman in late 2016, he intended to dissuade the king’s son from taking the world’s most valuable company public.

It didn’t work. Prince Mohammed ordered the minister, Khalid al-Falih, to get Saudi Arabian National Oil Co. listed as soon as possible, according to people with knowledge of the meeting.

That...