Britney Spears avoids tough trial, settles out of court