Court revives SF hotel workers’ suit over tips