As part of its effort to attract foreign investment , Saudi Arabia acceded to the WTO in December 2005 after many years of negotiations .