China passes new foreign investment law