The US has turned into a major exporter of oil and natural gas with far-reaching implications for the global energy order.