Chinese parliament endorses a foreign investment law aimed at creating a transparent environment for foreign companies.