The socialist president nationalized oil projects worth billions of dollars two years ago and is now moving against smaller service companies that the government has struggled to pay as crude revenues fell in recent months .