Give me a break. Unions have a lot of problems but if they were so damned influential, maybe every public sector union except for federal security wouldn't have been losing jobs and hours for the last 10 years.
Of course certain unions see an interest in the security state. Other, bigger unions are generally opposed but don't have skin in the game. Whatever. The security state is much bigger than the police and prison guard unions.
Fundamentally, the issue here is political game theory where there's no upside to fixing things and a lot of upside to painting your opponent as 'soft on terror' or 'soft on crime'. So policy only moves in one direction, and that direction is often stupid. Unions' wishes are just drops in the bucket compared to that.
In three decades, the California Correctional Peace Officers Association has become one of the most powerful political forces in California. The union has contributed millions of dollars to support "three strikes" and other laws that lengthen sentences and increase parole sanctions. It donated $1 million to Wilson after he backed the three strikes law.
It's not precisely what 'rayiner was saying, but the prison guard union is definitely pushing for more people in prison.