Northern Ireland is set to become the first part of the UK or Ireland to offer paid leave to parents affected by miscarriage.