President signs bill into law to secure foreign investments