DOJ brings these suits as part of its enforcement authority for Title II of the Civil Rights Act of 1964, which prohibits discrimination based on race, color, religion, or national origin in places of public accommodation, such as restaurants, gas stations, and hotels. An info sheet in multiple languages can be found at the bottom of this page.
You can read more about this here.