US stocks rise to gain for the week as traders assess August jobs report