Stock investors absorbed a sharp midweek, postelection spike in Treasury yields and sent equities to record highs on Friday.