U.S. stock indices rose during trading on Friday, putting the three main indices on track to end the week with gains.