U.S. stock indexes gave up their gains on Friday after a worse-than-expected consumer sentiment reading showed inflation expectations rising.