The U.S. District Court for the Northern District of California has ruled in favor of gay and lesbian state workers…