The merger would give the state a controlling stake in Gazprom , which would allow the lifting of a ban on foreign ownership of its shares .