Oil & gas companies hedge bets with investments in green energy