The bill, which passed the legislature and was signed into law by Democratic governor Jeanne Shaheen, banned discrimination based on sexual orientation in employment and housing matters and with regard to public accommodations, such as restaurants and hotels.