Oil and natural-gas futures settled sharply higher on Friday to tally a strong gain for the week, as a storm, now known as Hurricane Ida, takes aim at the U.S. Gulf Coast.