Oil gains as U.S. shale output set to decline