U.S. markets break three-week slump with strong Friday close

U.S. markets finished the week ahead after a third day of gains broke a three-week slump.