The legislation aimed to protect students from nursing schools that charge tens of thousands in tuition and fees but put out graduates who cannot pass the required national exam and so cannot work.