Bold bet on gas turned a struggling state group into one of the most important global resources companies