A California state judge ruled Monday that a law requiring corporate boards to include women was unconstitutional.