If you report to your supervisor or employer that you have been discriminated against or sexually harassed, then the employer is not allowed to retaliate against you. Retaliation includes activities that impact your employment or pay if those actions were taken solely because of your report.
Once you make a report, the company usually engages in an investigation. You might also report issues to outside agencies or authorities, and outside investigations might take place. In some cases, the investigations might deem that the issue was not harassment or discrimination. Even if this is the case, you are still protected against retaliation.