But the legal fighting will continue in the lower courts.