New law will aim to cover expectant mothers from the moment they tell their boss they are pregnant.