The Federation and Starfleet is shown to not be a perfect institution, with many questionable and sometimes downright right corrupt politicians involved.
Can’t see how they couldn’t have journalism and investigations, especially if they’re meant to be a somewhat competent representative democracy.