The proposed legislation follows an investigation by Bloomberg Law and NBC News that found mistreatment of pregnant women in local jails.