As the world faces the possibility of an oil-supply shock after a Saturday attack on Saudi Arabia, the U.S. finds itself in the rare position of being able to help stabilize world markets.

About half of Saudi Arabia’s global oil production was knocked offline in a drone attack. Officials said they hope to restore output to regular levels by Monday.

While...