A class action alleging a Montgomery County school district used illegal budgeting practices to justify tax increases has resolved in a $27 million settlement after six years of litigation.