Wall Street gained on Friday, as European shares climbed to a fifth straight weekly gain on upbeat earnings that helped sustain the rally sparked by a U.S.-China trade truce.