The federal government has agreed to settle a lawsuit accusing the Department of Veterans Affairs of misusing its sprawling West Los Angeles health campus while veterans with brain injuries and mental impairment slept in the streets, people familiar with the agreement said Tuesday.