> PhD students by law cannot work more than 20 hours a week.
While most teaching (and research) assistanships might indeed be technically 20h/week, I can assure you most/all PhD students work >20h/week total.
You still need to do your research on the side. If you RA and your PhD research align, nice. If it doesn't, tough luck.