U.S. stocks on Monday made up much of the ground lost in last week’s fall as investors bet that the U.K. would vote to stay in the European Union.

Traders and analysts said relief propelled a gain in riskier assets and declines in government bonds, gold and other havens after polls and betting markets showed momentum for the “Remain” camp.

The...