how does maternity law protect working women