A proposed law to help thousands of mother-and-baby-homes survivors accept compensation without losing access to benefits has been tabled in the UK Parliament.