US stocks close higher despite record inflation