Republicans in Montana helped block a measure that would bar trans lawmakers from using bathrooms aligned with their gender identities in the state Capitol.