LOS ANGELES — A Los Angeles judge ruled Friday that California’s landmark law mandating that corporations…