This is dumb. I can't think of any way to enforce it, and although this obviously won't pass and is just grandstanding I still pity the people having to think of how they can write guidance for the hospitality industry.
We already issue IDs to people in the sex they want. If you want a passport in a different sex than your birth certificate, you can have it, all you have to do is fill in a statutory declaration at the time of applying for your passport.
So if a trans man wants to go to the bathroom, do they use the women's since they were born female, or do they use the men's since they look male and have male ID?