Most of that total went into greenfield projects, such as electric vehicle maker Tesla’s factory in Shanghai, which will be the first wholly foreign-owned auto plant in China. Other large deals ...