Hundreds of millions of dollars meant to provide a little relief to the nation's struggling homeowners is being diverted to plug state budget gaps, according to an analysis in today's New York Times. In a budget proposed this week, California joined more than a dozen states that want to help close gaping shortfalls using money paid by the nation's biggest banks and earmarked for foreclosure prevention, investigations of financial fraud and blunting the ill effects of the housing crisis. California was awarded more than $400 million from the banks, and Gov. Jerry Brown (D) has proposed using the bulk of that sum to pay the state's debts. The money was part of a national settlement valued at $25 billion and negotiated with five big banks over abuses in their mortgage and foreclosure processes. As part of the settlement, the banks agreed to pay the states $2.5 billion, money intended to help homeowners and mitigate the effects of the foreclosure surge. Only 27 states have devoted all their funds from the banks to housing programs, according to a report by Enterprise Community Partners, a national affordable housing group. So far about 15 states have said that they will use all or most of the money for other purposes.