Internal federal study questions millions spent jailing refugees and immigrants