U.S. consumer confidence inched higher in March despite soaring energy prices brought on by the war in Iran.