Some Republicans joined Democrats in rejecting the measure, which would have restricted bathroom access. Rep. Zooey Zephyr, Montana's first openly transgender legislator, won a second term last month.