It’s not actually a new law, it’s a clarification of a law that already exists. The supreme court ruled in 2020 that it’s illegal to harass employees on the basis of sexuality or gender identity. The EEOC just issued a clarification that misgendering and bathroom bans count as harassment.