Americans kept spending in February even as prices rose, with the Iran war expected to push costs higher, new data showed.