As countries scramble to secure oil, gas and fertilizer, China’s bets on clean energy and coal are cushioning its dependence on oil and gas imports.