SAN FRANCISCO — Law students and others who purchased the BAR/BRI preparation course for state bar exams will get to keep the $49 million settlement they reached with the course makers in 2007.

But attorneys who worked on their behalf will now return to federal court in California to hash out disagreements over millions of dollars in attorneys fees, following a Thursday ruling from the Ninth Circuit U.S. Court of Appeals.