US stock indexes drifted to a mixed finish after climbing in the morning but then running out of steam.