A bill banning workplace discrimination based on gender identity and sexual orientation passed in the Senate Thursday.