How is government involved? The threat of lawsuit is based on CA law. Other cities also have non-discrimination ordinances that prohibit among other things, gender discrimination.
The government has made discrimination by businesses on the basis of race, gender, etc. illegal. So, this is how government is involved.
Think of the bakers ruined because they wouldn't bake a same sex marriage cake.