While welcoming the decision , which came in a lawsuit filed by the city against the state , Mayor Gavin Newsom of San Francisco said it was '' only the beginning '' of a long legal battle that would probably be decided by the California Supreme Court .