US finalizes rule to limit gas 'flaring' at drilling sites