Legislators gave final approval Monday to a bill that protects divorced people from the debts of the former spouse.

The law says that a judge, in a divorce ruling, must detail who pays which debts. If the party who is supposed to pay the debt doesn't, a creditor must be notified of the divorce agreement, and no negative credit rating can be issued to the non-responsible spouse without the spouse's notification first.Sen. Karen Shepherd, D-Salt Lake, says many women end up with debts incurred by former husbands and either have to pay them, declare bankruptcy or have a bad credit rating.