From a tax perspective undocumented immigrants paid $89.8–$96.7 billion in taxes in 2022–2023, but estimated costs spent on them range from $150–$182 billion annually, their total economic impact is hard to measure tho, but from data we can measure it seems to be negative - at least from what I’ve read.