Parents who experience pregnancy loss at any stage will be entitled to leave from work under planned changes.