USA-börserna stärktes på fredagen och gick mot veckostängning nära rekordnivåer, samt en sjätte positiv handelsvecka i följd.