NEW YORK — U.S. stocks edged higher Friday as gains from energy companies, industrial firms and smaller companies helped the market end a modest losing streak. Oil and gas companies climbed along with the price of oil Friday while industrial companies recovered some of the losses they sustained earlier this month.