United is investing in premium cabins and fleet growth while cutting less profitable flying as oil prices climb amid the Iran conflict.