The state's emergency agency has spent hundreds of millions on immigration enforcement efforts over the past year.