Two people have admitted rioting following the deaths of two teenagers in an e-bike crash in Cardiff.