It’s legal in 38 states under the gay panic defense.
https://williamsinstitute.law.ucla.edu/press/gay-trans-panic-press-release/
https://en.m.wikipedia.org/wiki/Gay_panic_defense
Here’s a list of trans people murdered specifically for being trans. As you can see many of them were in the us and in many cases the killer sought the gay and trans panic defense to get out of jail.
https://en.m.wikipedia.org/wiki/List_of_people_killed_for_being_transgender