twenty-one states plus washington, d.c. have made discrimination because of sexual orientation illegal. sixteen states plus washington, d.c. have made discrimination because of gender identity or expression illegal. hate crimes because of sexual orientation or gender identity can also be punished under matthew shepard and james byrd, jr. hate crimes prevention act of 2009.