You should speak with an employment law attorney--you may have a legal cause of action. It is illegal to retaliate against someone for filing a sexual harassment claim. It is permissible to fire, transfer, demote, etc. someone who had filed such a claim, but only for legitimate reasons unconnected with the fact of the claim--such as for poor work performance, restructuring or reorganizing, excessive absenteeism, etc. Transferring you to a different shift could be legitimate, if there is a valid reason--e.g. the individual who is complaining about that shift has been there longer than you, has better experience or credentials, etc., so that it is appropriate to accomodate him--and you are, based on your own credentials, time in service, experience, etc., the most appropriate choice to do so. But if this is not the case--if there is not a good, legitimate reason for this--it may be retaliation, which, as stated, is illegal. Based on what you have written, it would be worthwhile to discuss the matter in detail with an employment law attorney.