The recent passage of a bill requiring companies to set numerical goals in hiring and promoting women should improve the working environment for them, a Harvard Business School professor has said.