So from what I understood, You need to filter data in dataTable A, using the data in the datatable B. So basically you want records that are only available in both data tables using the ID column right?
So, why not try using the Join Data Table activity. This activity will enable you to join the two tables using the ID column. Based on the join type property (Inner Join) will send out the matching records back to a datatable as an output