US stocks edge higher after notching 7th straight weekly gain