In some chicken companies they kill (macerate) the male chicks, is it halal to support such companies? In dairy companies they sometimes keep cows in poor conditions, can we still eat meat and dairy from such companies?

Yes you can, except if the meat becomes harmful.