U.S. corporate executives are increasingly pessimistic about their business prospects in China in light of tough restrictions on foreign investment in the country’s vast service sector, new cyber-security regulations that favor domestic technologies and weak enforcement of intellectual property protections.