The legislation would impact facilities both in government buildings and businesses with bathrooms available to the public.