Gov. Jerry Brown and Democratic lawmakers are pursuing late-session legislation to free the state from a court order to repay $330 million to a settlement fund created to help victims of the foreclosure crisis.

Senate Bill 861 would declare that the Legislature approved of Department of Finance decisions between 2011 and 2014 to spend hundreds of millions of dollars in settlement money on housing bond debt service and other state obligations instead of relief for distressed homeowners.