China's national legislature on Friday passed the foreign investment law, a landmark legislation that will provide stronger protection and a better business environment for overseas investors.