Saudi Arabia opened its equities to all foreign investors, the latest step in the kingdom’s efforts to boost flows into the Middle East’s largest market.