Even as the trade war was crimping the flow of goods between the U.S. and China, the Chinese government was opening doors in another arena, inviting in more foreign banks, insurance providers and other financial services companies. China has also been making it easier for foreigners to buy its stocks and bonds — something many fund managers are required to do now that major index compilers are including Chinese assets in their gauges — to the growing dismay of some U.S.