Judges in two states have handed lenders significant victories in the battle for federal preemption. But a federal court could be about to lower the boom by upholding a rule that makes it harder for state lenders to collect prepayment penalties on certain mortgages.