US stocks rise but indexes head for weekly losses on rate fears