A judge in Los Angeles has found that a California law mandating publicly traded companies include people from underrepresented communities on their boards is unconstitutional, ruling in favor of a conservative group seeking an injunction against the measure.