Bill to gut states troubled loan fund headed to full Senate,