A state law that requires California companies to have women on their boards is facing a legal challenge in Los Angeles, where a trial concluded Wednesday.