The key phrase that makes this statement misleading is “federal crimes.” Federal crimes make up a very low percentage of crimes nationwide. For instance, there are around 20,000 murders in the US each year, but under 100 federal murder convictions. So, 22% of federal murder convictions represents fewer than 20 people.
Overall, non-citizens make up a much smaller proportion of all criminal prosecutions, but that context is left out. As a result, statements like this can be both true, and exceptionally misleading in ways that completely distort the conversation.