U.S. crude oil prices rose sharply Friday as Iran escalated attacks in the Strait of Hormuz this week.