U.S. oil futures end with a modest gain for the session, but post a 10% rise for the week