A bid by Monster Beverage to stop possible legal action by San Francisco's city attorney over the company's marketing practices has failed.