California settles lawsuit with Sacramento suburb over affordable housing project